2022-02-05 21:32:54 +01:00
|
|
|
---
|
2021-05-21 10:15:05 +02:00
|
|
|
|
2021-02-15 10:25:35 +01:00
|
|
|
# Unless `matrix_synapse_workers_enabled_list` is explicitly defined,
|
|
|
|
# we'll generate it dynamically.
|
2022-11-24 15:27:11 +01:00
|
|
|
- ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/workers/init.yml"
|
2022-11-23 14:52:58 +01:00
|
|
|
when: "matrix_synapse_workers_enabled | bool and matrix_synapse_workers_enabled_list | length == 0"
|
2021-02-15 10:25:35 +01:00
|
|
|
|
2022-09-15 06:05:25 +02:00
|
|
|
- name: Ensure workers are injected into various places
|
|
|
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/workers/util/inject_worker.yml"
|
2021-01-25 11:14:46 +01:00
|
|
|
with_items: "{{ matrix_synapse_workers_enabled_list }}"
|
|
|
|
loop_control:
|
|
|
|
loop_var: matrix_synapse_worker_details
|
2022-11-23 14:52:58 +01:00
|
|
|
when: matrix_synapse_workers_enabled | bool
|