Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

39 líneas
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. - matrix_client_schildichat_container_network
  10. - name: Fail if schildichat location sharing enabled, but no tile server defined
  11. ansible.builtin.fail:
  12. msg: >-
  13. You need to define at least one map tile server in matrix_client_schildichat_location_sharing_map_style_content_sources_localsource_tiles list
  14. when:
  15. - matrix_client_schildichat_location_sharing_enabled | bool
  16. - matrix_client_schildichat_location_sharing_map_style_content_sources_localsource_tiles | length == 0
  17. - when: matrix_client_schildichat_container_labels_traefik_enabled | bool
  18. block:
  19. - name: Fail if required matrix-client-schildichat 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_schildichat_container_labels_traefik_hostname
  26. - matrix_client_schildichat_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_schildichat_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_schildichat_container_labels_traefik_path_prefix ends with a slash
  31. ansible.builtin.fail:
  32. msg: >-
  33. 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`).
  34. when: "matrix_client_schildichat_container_labels_traefik_path_prefix != '/' and matrix_client_schildichat_container_labels_traefik_path_prefix[-1] == '/'"