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

38 строки
2.0 KiB

  1. ---
  2. - name: Fail if required schildichat settings not defined
  3. ansible.builtin.fail:
  4. msg: >
  5. You need to define a required configuration setting (`{{ item }}`) for using schildichat.
  6. when: "vars[item] == ''"
  7. with_items:
  8. - "matrix_client_schildichat_default_hs_url"
  9. - name: Fail if schildichat location sharing enabled, but no tile server defined
  10. ansible.builtin.fail:
  11. msg: >-
  12. You need to define at least one map tile server in matrix_client_schildichat_location_sharing_map_style_content_sources_localsource_tiles list
  13. when:
  14. - matrix_client_schildichat_location_sharing_enabled | bool
  15. - matrix_client_schildichat_location_sharing_map_style_content_sources_localsource_tiles | length == 0
  16. - when: matrix_client_schildichat_container_labels_traefik_enabled | bool
  17. block:
  18. - name: Fail if required matrix-client-schildichat Traefik settings not defined
  19. ansible.builtin.fail:
  20. msg: >-
  21. You need to define a required configuration setting (`{{ item }}`).
  22. when: "vars[item] == ''"
  23. with_items:
  24. - matrix_client_schildichat_container_labels_traefik_hostname
  25. - matrix_client_schildichat_container_labels_traefik_path_prefix
  26. # We ensure it doesn't end with a slash, because we handle both (slash and no-slash).
  27. # Knowing that `matrix_client_schildichat_container_labels_traefik_path_prefix` does not end with a slash
  28. # ensures we know how to set these routes up without having to do "does it end with a slash" checks elsewhere.
  29. - name: Fail if matrix_client_schildichat_container_labels_traefik_path_prefix ends with a slash
  30. ansible.builtin.fail:
  31. msg: >-
  32. matrix_client_schildichat_container_labels_traefik_path_prefix (`{{ matrix_client_schildichat_container_labels_traefik_path_prefix }}`) must either be `/` or not end with a slash (e.g. `/schildichat`).
  33. when: "matrix_client_schildichat_container_labels_traefik_path_prefix != '/' and matrix_client_schildichat_container_labels_traefik_path_prefix[-1] == '/'"