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.
 
 

28 wiersze
1.4 KiB

  1. # SPDX-FileCopyrightText: 2020 - 2025 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  3. # SPDX-FileCopyrightText: 2025 Suguru Hirahara
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - when: synapse_admin_container_labels_traefik_enabled | bool
  8. block:
  9. - name: Fail if required synapse-admin Traefik settings not defined
  10. ansible.builtin.fail:
  11. msg: >-
  12. You need to define a required configuration setting (`{{ item }}`).
  13. when: "lookup('vars', item, default='') == ''"
  14. with_items:
  15. - synapse_admin_container_labels_traefik_hostname
  16. - synapse_admin_container_labels_traefik_path_prefix
  17. # We ensure it doesn't end with a slash, because we handle both (slash and no-slash).
  18. # Knowing that `synapse_admin_container_labels_traefik_path_prefix` does not end with a slash
  19. # ensures we know how to set these routes up without having to do "does it end with a slash" checks elsewhere.
  20. - name: Fail if synapse_admin_container_labels_traefik_path_prefix ends with a slash
  21. ansible.builtin.fail:
  22. msg: >-
  23. synapse_admin_container_labels_traefik_path_prefix (`{{ synapse_admin_container_labels_traefik_path_prefix }}`) must either be `/` or not end with a slash (e.g. `/synapse-admin`).
  24. when: "synapse_admin_container_labels_traefik_path_prefix != '/' and synapse_admin_container_labels_traefik_path_prefix[-1] == '/'"