Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

39 righe
2.4 KiB

  1. ---
  2. - name: Fail if required Cinny settings not defined
  3. ansible.builtin.fail:
  4. msg: >
  5. You need to define a required configuration setting (`{{ item }}`) to use Cinny.
  6. when: "item.when | bool and vars[item.name] == ''"
  7. with_items:
  8. - {'name': 'matrix_client_cinny_default_hs_url', when: true}
  9. - {'name': 'matrix_client_cinny_container_network', when: true}
  10. - {'name': 'matrix_client_cinny_container_labels_traefik_compression_middleware_name', when: "{{ matrix_client_cinny_container_labels_traefik_compression_middleware_enabled }}"}
  11. - name: Fail if matrix_client_cinny_path_prefix is not /
  12. ansible.builtin.fail:
  13. msg: >-
  14. `matrix_client_cinny_path_prefix` is set to `{{ matrix_client_cinny_path_prefix }}` in your configuration, but Cinny no longer supports hosting under a path prefix without an application rebuild.
  15. Consider removing your `matrix_client_cinny_path_prefix` override and adjusting the Cinny hostname via `matrix_server_fqn_cinny` or `matrix_client_cinny_hostname`.
  16. See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3701
  17. when: "matrix_client_cinny_path_prefix != '/'"
  18. - when: matrix_client_cinny_container_labels_traefik_enabled | bool
  19. block:
  20. - name: Fail if required matrix-client-cinny Traefik settings not defined
  21. ansible.builtin.fail:
  22. msg: >-
  23. You need to define a required configuration setting (`{{ item }}`).
  24. when: "vars[item] == ''"
  25. with_items:
  26. - matrix_client_cinny_container_labels_traefik_hostname
  27. - matrix_client_cinny_container_labels_traefik_path_prefix
  28. # We ensure it doesn't end with a slash, because we handle both (slash and no-slash).
  29. # Knowing that `matrix_client_cinny_container_labels_traefik_path_prefix` does not end with a slash
  30. # ensures we know how to set these routes up without having to do "does it end with a slash" checks elsewhere.
  31. - name: Fail if matrix_client_cinny_container_labels_traefik_path_prefix ends with a slash
  32. ansible.builtin.fail:
  33. msg: >-
  34. matrix_client_cinny_container_labels_traefik_path_prefix (`{{ matrix_client_cinny_container_labels_traefik_path_prefix }}`) must either be `/` or not end with a slash (e.g. `/cinny`).
  35. when: "matrix_client_cinny_container_labels_traefik_path_prefix != '/' and matrix_client_cinny_container_labels_traefik_path_prefix[-1] == '/'"