mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-25 02:18:31 +01:00
synapse workers: fix undefined variable cases when removing workers
This commit is contained in:
parent
e078e29ef8
commit
cce90b187a
@ -803,10 +803,10 @@ matrix_nginx_proxy_synapse_presence_disabled: "{{ not matrix_synapse_use_presenc
|
|||||||
|
|
||||||
matrix_nginx_proxy_synapse_workers_enabled: "{{ matrix_synapse_workers_enabled }}"
|
matrix_nginx_proxy_synapse_workers_enabled: "{{ matrix_synapse_workers_enabled }}"
|
||||||
matrix_nginx_proxy_synapse_workers_list: "{{ matrix_synapse_workers_enabled_list }}"
|
matrix_nginx_proxy_synapse_workers_list: "{{ matrix_synapse_workers_enabled_list }}"
|
||||||
matrix_nginx_proxy_synapse_generic_worker_locations: "{{ matrix_synapse_workers_generic_worker_endpoints }}"
|
matrix_nginx_proxy_synapse_generic_worker_locations: "{{ matrix_synapse_workers_generic_worker_endpoints|default([]) }}"
|
||||||
matrix_nginx_proxy_synapse_media_repository_locations: "{{ matrix_synapse_workers_media_repository_endpoints }}"
|
matrix_nginx_proxy_synapse_media_repository_locations: "{{ matrix_synapse_workers_media_repository_endpoints|default([]) }}"
|
||||||
matrix_nginx_proxy_synapse_user_dir_locations: "{{ matrix_synapse_workers_user_dir_endpoints }}"
|
matrix_nginx_proxy_synapse_user_dir_locations: "{{ matrix_synapse_workers_user_dir_endpoints|default([]) }}"
|
||||||
matrix_nginx_proxy_synapse_frontend_proxy_locations: "{{ matrix_synapse_workers_frontend_proxy_endpoints }}"
|
matrix_nginx_proxy_synapse_frontend_proxy_locations: "{{ matrix_synapse_workers_frontend_proxy_endpoints|default([]) }}"
|
||||||
|
|
||||||
matrix_nginx_proxy_systemd_wanted_services_list: |
|
matrix_nginx_proxy_systemd_wanted_services_list: |
|
||||||
{{
|
{{
|
||||||
|
@ -27,15 +27,14 @@
|
|||||||
|
|
||||||
- name: Ensure worker configs are cleaned
|
- name: Ensure worker configs are cleaned
|
||||||
file:
|
file:
|
||||||
path: "{{ item.root + '/' + item.path }}"
|
path: "{{ item }}"
|
||||||
state: absent
|
state: absent
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- "{{ matrix_synapse_config_dir_path }}/worker.*.yaml"
|
- "{{ matrix_synapse_config_dir_path }}/worker.*.yaml"
|
||||||
|
|
||||||
- name: Remove workers from synapse.wants list
|
- name: Remove workers from synapse.wants list
|
||||||
set_fact:
|
set_fact:
|
||||||
matrix_synapse_systemd_wanted_services_list: "{{ matrix_synapse_systemd_wanted_services_list | reject('search', item) | list }}"
|
matrix_synapse_systemd_wanted_services_list: "{{ matrix_synapse_systemd_wanted_services_list | reject('search', '^matrix-synapse-worker@') | list }}"
|
||||||
with_items: "{{ matrix_synapse_workers_avail_list }}"
|
|
||||||
|
|
||||||
- name: Ensure systemd noticed removal of worker service units
|
- name: Ensure systemd noticed removal of worker service units
|
||||||
service:
|
service:
|
||||||
|
Loading…
Reference in New Issue
Block a user