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

48 строки
2.4 KiB

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