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.
 
 

34 wiersze
2.0 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed 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_synapse_admin_docker_repo', 'new': 'matrix_synapse_admin_container_self_build_repo'}
  10. - {'old': 'matrix_synapse_admin_container_self_build', 'new': 'matrix_synapse_admin_container_image_self_build'}
  11. - {'old': 'matrix_synapse_admin_container_self_build_repo', 'new': 'matrix_synapse_admin_container_image_self_build_repo'}
  12. - {'old': 'matrix_synapse_admin_public_endpoint', 'new': 'matrix_synapse_admin_path_prefix'}
  13. - when: matrix_synapse_admin_container_labels_traefik_enabled | bool
  14. block:
  15. - name: Fail if required matrix-synapse-admin Traefik settings not defined
  16. ansible.builtin.fail:
  17. msg: >-
  18. You need to define a required configuration setting (`{{ item }}`).
  19. when: "vars[item] == ''"
  20. with_items:
  21. - matrix_synapse_admin_container_labels_traefik_hostname
  22. - matrix_synapse_admin_container_labels_traefik_path_prefix
  23. # We ensure it doesn't end with a slash, because we handle both (slash and no-slash).
  24. # Knowing that `matrix_synapse_admin_container_labels_traefik_path_prefix` does not end with a slash
  25. # ensures we know how to set these routes up without having to do "does it end with a slash" checks elsewhere.
  26. - name: Fail if matrix_synapse_admin_container_labels_traefik_path_prefix ends with a slash
  27. ansible.builtin.fail:
  28. msg: >-
  29. matrix_synapse_admin_container_labels_traefik_path_prefix (`{{ matrix_synapse_admin_container_labels_traefik_path_prefix }}`) must either be `/` or not end with a slash (e.g. `/synapse-admin`).
  30. when: "matrix_synapse_admin_container_labels_traefik_path_prefix != '/' and matrix_synapse_admin_container_labels_traefik_path_prefix[-1] == '/'"