Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

29 řádky
1.5 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: "vars[item] == '' or vars[item] is none"
  7. with_items:
  8. - "matrix_client_cinny_default_hs_url"
  9. - when: matrix_client_cinny_container_labels_traefik_enabled | bool
  10. block:
  11. - name: Fail if required matrix-client-cinny Traefik settings not defined
  12. ansible.builtin.fail:
  13. msg: >-
  14. You need to define a required configuration setting (`{{ item }}`).
  15. when: "vars[item] == ''"
  16. with_items:
  17. - matrix_client_cinny_container_labels_traefik_hostname
  18. - matrix_client_cinny_container_labels_traefik_path_prefix
  19. # We ensure it doesn't end with a slash, because we handle both (slash and no-slash).
  20. # Knowing that `matrix_client_cinny_container_labels_traefik_path_prefix` does not end with a slash
  21. # ensures we know how to set these routes up without having to do "does it end with a slash" checks elsewhere.
  22. - name: Fail if matrix_client_cinny_container_labels_traefik_path_prefix ends with a slash
  23. ansible.builtin.fail:
  24. msg: >-
  25. 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`).
  26. when: "matrix_client_cinny_container_labels_traefik_path_prefix != '/' and matrix_client_cinny_container_labels_traefik_path_prefix[-1] == '/'"