Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

27 righe
1.2 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 != '/'"