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.
 
 

33 wiersze
1.4 KiB

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