Fix Synapse sub-component (worker, S3, ..) uninstallation

matrix-synapse/tasks/setup_uninstall.yml would previously not run unless
Synapse was completely disabled.
This commit is contained in:
Slavi Pantaleev 2023-08-29 14:53:28 +03:00
parent ba1cce1316
commit cc7244c14d
2 changed files with 6 additions and 4 deletions

View File

@ -36,8 +36,8 @@
- setup-all - setup-all
- setup-synapse - setup-synapse
block: block:
- when: not matrix_synapse_enabled | bool # This always runs because it handles uninstallation for sub-components too.
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml" - ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
- tags: - tags:
- import-synapse-media-store - import-synapse-media-store

View File

@ -4,7 +4,8 @@
- setup-all - setup-all
- setup-synapse - setup-synapse
block: block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/setup_uninstall.yml" - when: not matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/setup_uninstall.yml"
- tags: - tags:
- setup-all - setup-all
@ -17,7 +18,8 @@
- setup-all - setup-all
- setup-synapse - setup-synapse
block: block:
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/setup_uninstall.yml" - when: not matrix_synapse_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/setup_uninstall.yml"
- tags: - tags:
- setup-all - setup-all