Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

29 wiersze
1.2 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # This validation task is here, not in validate_config.yml,
  6. # because init.yml runs before it.
  7. #
  8. # validate_config.yml aims to validate the configuration based on the work we do,
  9. # so we can't change the order.
  10. - name: Fail when using the old (renamed) room-workers preset
  11. ansible.builtin.fail:
  12. msg: >-
  13. The `room-workers` preset has been renamed to `specialized-workers`. Update your `matrix_synapse_workers_preset` variable to use the new name.
  14. when: matrix_synapse_workers_preset == 'room-workers'
  15. # Unless `matrix_synapse_workers_enabled_list` is explicitly defined,
  16. # we'll generate it dynamically.
  17. - ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/workers/init.yml"
  18. when: "matrix_synapse_workers_enabled | bool and matrix_synapse_workers_enabled_list | length == 0"
  19. - name: Ensure workers are injected into various places
  20. ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/workers/util/inject_worker.yml"
  21. with_items: "{{ matrix_synapse_workers_enabled_list }}"
  22. loop_control:
  23. loop_var: matrix_synapse_worker_details
  24. when: matrix_synapse_workers_enabled | bool