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.
 
 

49 wiersze
2.6 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed SchildiChat Web settings
  3. ansible.builtin.fail:
  4. msg: >-
  5. Your configuration contains a variable, which now has a different name.
  6. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  7. when: "item.old in vars"
  8. with_items:
  9. - {'old': 'matrix_client_schildichat_welcome_user_id', 'new': '<removed>'}
  10. - {'old': 'matrix_client_schildichat_container_image_name_prefix', 'new': 'matrix_client_schildichat_container_image_registry_prefix'}
  11. - name: Fail if required SchildiChat Web settings not defined
  12. ansible.builtin.fail:
  13. msg: >
  14. You need to define a required configuration setting (`{{ item }}`) for using SchildiChat Web.
  15. when: "vars[item] == ''"
  16. with_items:
  17. - matrix_client_schildichat_default_hs_url
  18. - matrix_client_schildichat_container_network
  19. - name: Fail if SchildiChat location sharing enabled, but no tile server defined
  20. ansible.builtin.fail:
  21. msg: >-
  22. You need to define at least one map tile server in matrix_client_schildichat_location_sharing_map_style_content_sources_localsource_tiles list
  23. when:
  24. - matrix_client_schildichat_location_sharing_enabled | bool
  25. - matrix_client_schildichat_location_sharing_map_style_content_sources_localsource_tiles | length == 0
  26. - when: matrix_client_schildichat_container_labels_traefik_enabled | bool
  27. block:
  28. - name: Fail if required matrix-client-schildichat Traefik settings not defined
  29. ansible.builtin.fail:
  30. msg: >-
  31. You need to define a required configuration setting (`{{ item }}`).
  32. when: "vars[item] == ''"
  33. with_items:
  34. - matrix_client_schildichat_container_labels_traefik_hostname
  35. - matrix_client_schildichat_container_labels_traefik_path_prefix
  36. # We ensure it doesn't end with a slash, because we handle both (slash and no-slash).
  37. # Knowing that `matrix_client_schildichat_container_labels_traefik_path_prefix` does not end with a slash
  38. # ensures we know how to set these routes up without having to do "does it end with a slash" checks elsewhere.
  39. - name: Fail if matrix_client_schildichat_container_labels_traefik_path_prefix ends with a slash
  40. ansible.builtin.fail:
  41. msg: >-
  42. 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`).
  43. when: "matrix_client_schildichat_container_labels_traefik_path_prefix != '/' and matrix_client_schildichat_container_labels_traefik_path_prefix[-1] == '/'"