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

35 строки
1.7 KiB

  1. # SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Fail if required Element Admin settings not defined
  6. ansible.builtin.fail:
  7. msg: >
  8. You need to define a required configuration setting (`{{ item.name }}`).
  9. when: "item.when | bool and lookup('vars', item.name, default='') | string | length == 0"
  10. with_items:
  11. - {'name': 'matrix_element_admin_hostname', when: true}
  12. - {'name': 'matrix_element_admin_path_prefix', when: true}
  13. - {'name': 'matrix_element_admin_container_network', when: true}
  14. - {'name': 'matrix_element_admin_environment_variable_server_name', when: true}
  15. # Element Admin appears to hardcode all paths to `/` (e.g. `/config.json`, `/assets/...`).
  16. # While we can properly serve the homepage and handle stripping the path prefix on our side,
  17. # the hardcoded URLs in the Element Admin are pointing people to the wrong place, which is a problem.
  18. - name: Fail if Element Admin path prefix is different than /
  19. ansible.builtin.fail:
  20. msg: >-
  21. Element Admin with a path prefix other than '/' is not supported yet.
  22. You have configured matrix_element_admin_path_prefix to '{{ matrix_element_admin_path_prefix }}'.
  23. when: "matrix_element_admin_path_prefix != '/'"
  24. - name: (Deprecation) Catch and report renamed Element Admin variables
  25. ansible.builtin.fail:
  26. msg: >-
  27. The variable `{{ item.old }}` is deprecated. Please use `{{ item.new }}` instead.
  28. when: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
  29. with_items:
  30. - {'old': 'matrix_element_admin_container_image_force_pull', 'new': '<removed> (the new community.docker.docker_image_pull module handles this natively)'}