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.
 
 

43 wiersze
2.5 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Fail if required Cinny settings not defined
  6. ansible.builtin.fail:
  7. msg: >
  8. You need to define a required configuration setting (`{{ item }}`) to use Cinny.
  9. when: "item.when | bool and vars[item.name] == ''"
  10. with_items:
  11. - {'name': 'matrix_client_cinny_default_hs_url', when: true}
  12. - {'name': 'matrix_client_cinny_container_network', when: true}
  13. - {'name': 'matrix_client_cinny_container_labels_traefik_compression_middleware_name', when: "{{ matrix_client_cinny_container_labels_traefik_compression_middleware_enabled }}"}
  14. - name: Fail if matrix_client_cinny_path_prefix is not /
  15. ansible.builtin.fail:
  16. msg: >-
  17. `matrix_client_cinny_path_prefix` is set to `{{ matrix_client_cinny_path_prefix }}` in your configuration, but Cinny no longer supports hosting under a path prefix without an application rebuild.
  18. Consider removing your `matrix_client_cinny_path_prefix` override and adjusting the Cinny hostname via `matrix_server_fqn_cinny` or `matrix_client_cinny_hostname`.
  19. See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3701
  20. when: "matrix_client_cinny_path_prefix != '/'"
  21. - when: matrix_client_cinny_container_labels_traefik_enabled | bool
  22. block:
  23. - name: Fail if required matrix-client-cinny Traefik settings not defined
  24. ansible.builtin.fail:
  25. msg: >-
  26. You need to define a required configuration setting (`{{ item }}`).
  27. when: "vars[item] == ''"
  28. with_items:
  29. - matrix_client_cinny_container_labels_traefik_hostname
  30. - matrix_client_cinny_container_labels_traefik_path_prefix
  31. # We ensure it doesn't end with a slash, because we handle both (slash and no-slash).
  32. # Knowing that `matrix_client_cinny_container_labels_traefik_path_prefix` does not end with a slash
  33. # ensures we know how to set these routes up without having to do "does it end with a slash" checks elsewhere.
  34. - name: Fail if matrix_client_cinny_container_labels_traefik_path_prefix ends with a slash
  35. ansible.builtin.fail:
  36. msg: >-
  37. matrix_client_cinny_container_labels_traefik_path_prefix (`{{ matrix_client_cinny_container_labels_traefik_path_prefix }}`) must either be `/` or not end with a slash (e.g. `/cinny`).
  38. when: "matrix_client_cinny_container_labels_traefik_path_prefix != '/' and matrix_client_cinny_container_labels_traefik_path_prefix[-1] == '/'"