2020-04-10 21:44:53 +00:00
|
|
|
---
|
|
|
|
|
2021-01-25 10:14:46 +00:00
|
|
|
# A previous version of the worker setup used this.
|
|
|
|
# This is a temporary cleanup for people who ran that version.
|
|
|
|
- name: Ensure old matrix-synapse.service.wants directory is gone
|
2022-07-18 07:39:08 +00:00
|
|
|
ansible.builtin.file:
|
2022-11-04 14:38:38 +00:00
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-synapse.service.wants"
|
2021-01-25 10:14:46 +00:00
|
|
|
state: absent
|
|
|
|
|
|
|
|
# Same. This was part of a previous version of the worker setup.
|
|
|
|
# No longer necessary.
|
|
|
|
- name: Ensure matrix-synapse-worker-write-pid script is removed
|
2022-07-18 07:39:08 +00:00
|
|
|
ansible.builtin.file:
|
2021-01-25 10:14:46 +00:00
|
|
|
path: "{{ matrix_local_bin_path }}/matrix-synapse-worker-write-pid"
|
|
|
|
state: absent
|
|
|
|
|
2022-07-18 08:22:05 +00:00
|
|
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/workers/setup_install.yml"
|
|
|
|
when: "matrix_synapse_enabled | bool and matrix_synapse_workers_enabled | bool"
|
2020-04-10 21:44:53 +00:00
|
|
|
|
2022-07-18 08:22:05 +00:00
|
|
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/workers/setup_uninstall.yml"
|
|
|
|
when: "not matrix_synapse_workers_enabled | bool"
|