Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 

31 строка
1.4 KiB

  1. # SPDX-FileCopyrightText: 2020 - 2024 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2025 Suguru Hirahara
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: Fail if required matrix-registration settings not defined
  7. ansible.builtin.fail:
  8. msg: >
  9. You need to define a required configuration setting (`{{ item.name }}`).
  10. when: "item.when | bool and vars[item.name] == ''"
  11. with_items:
  12. - {'name': 'matrix_registration_hostname', when: true}
  13. - {'name': 'matrix_registration_path_prefix', when: true}
  14. - {'name': 'matrix_registration_container_network', when: true}
  15. - {'name': 'matrix_registration_shared_secret', when: true}
  16. - {'name': 'matrix_registration_admin_secret', when: true}
  17. - {'name': 'matrix_registration_server_location', when: true}
  18. - {'name': 'matrix_registration_database_hostname', when: "{{ matrix_registration_database_engine == 'postgres' }}"}
  19. - name: (Deprecation) Catch and report renamed settings
  20. ansible.builtin.fail:
  21. msg: >-
  22. Your configuration contains a variable, which now has a different name.
  23. Please rename the variable (`{{ item.old }}` -> `{{ item.new }}`) on your configuration file (vars.yml).
  24. when: "item.old in vars"
  25. with_items:
  26. - {'old': 'matrix_registration_docker_repo', 'new': 'matrix_registration_container_image_self_build_repo'}
  27. - {'old': 'matrix_registration_public_endpoint', 'new': 'matrix_registration_path_prefix'}