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

38 строки
2.1 KiB

  1. ---
  2. - name: Fail if required Cinny settings not defined
  3. ansible.builtin.fail:
  4. msg: >
  5. You need to define a required configuration setting (`{{ item }}`) to use Cinny.
  6. when: "vars[item] == '' or vars[item] is none"
  7. with_items:
  8. - matrix_client_cinny_default_hs_url
  9. - matrix_client_cinny_container_network
  10. - name: Fail if matrix_client_cinny_path_prefix is not /
  11. ansible.builtin.fail:
  12. msg: >-
  13. `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.
  14. Consider removing your `matrix_client_cinny_path_prefix` override and adjusting the Cinny hostname via `matrix_server_fqn_cinny` or `matrix_client_cinny_hostname`.
  15. See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3701
  16. when: "matrix_client_cinny_path_prefix != '/'"
  17. - when: matrix_client_cinny_container_labels_traefik_enabled | bool
  18. block:
  19. - name: Fail if required matrix-client-cinny Traefik settings not defined
  20. ansible.builtin.fail:
  21. msg: >-
  22. You need to define a required configuration setting (`{{ item }}`).
  23. when: "vars[item] == ''"
  24. with_items:
  25. - matrix_client_cinny_container_labels_traefik_hostname
  26. - matrix_client_cinny_container_labels_traefik_path_prefix
  27. # We ensure it doesn't end with a slash, because we handle both (slash and no-slash).
  28. # Knowing that `matrix_client_cinny_container_labels_traefik_path_prefix` does not end with a slash
  29. # ensures we know how to set these routes up without having to do "does it end with a slash" checks elsewhere.
  30. - name: Fail if matrix_client_cinny_container_labels_traefik_path_prefix ends with a slash
  31. ansible.builtin.fail:
  32. msg: >-
  33. 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`).
  34. when: "matrix_client_cinny_container_labels_traefik_path_prefix != '/' and matrix_client_cinny_container_labels_traefik_path_prefix[-1] == '/'"