Remove worker pidfiles, not needed as result of removing synchrotron-balancer

This commit is contained in:
uumas
2023-04-19 15:27:01 +03:00
parent 0f86bfbc02
commit e8696ea656
3 changed files with 10 additions and 17 deletions

View File

@@ -27,26 +27,22 @@
synapse_worker_services: []
synapse_synchrotrons: []
- name: Ensure worker pidfile dir in /run exists
ansible.builtin.file:
path: /run/matrix-synapse/
state: directory
owner: matrix-synapse
group: nogroup
mode: 0755
- name: Ensure tmpfiles config for pidfile dir in place
ansible.builtin.template:
src: tmpfiles-matrix-synapse.conf.j2
dest: /etc/tmpfiles.d/matrix-synapse.conf
mode: 0644
- name: Configure workers
ansible.builtin.include_tasks: worker_type.yml
loop: "{{ synapse_workers | dict2items }}"
loop_control:
loop_var: synapse_worker
- name: Ensure worker pidfile dir in /run not present (legacy)
ansible.builtin.file:
path: /run/matrix-synapse/
state: absent
- name: Ensure tmpfiles config for pidfile dir not present (legacy)
ansible.builtin.file:
path: /etc/tmpfiles.d/matrix-synapse.conf
state: absent
- name: Ensure synchrotron balancer removed (legacy)
ansible.builtin.include_tasks: matrix-synchrotrons.yml
when: synapse_synchrotrons | length != 0