Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

30 Zeilen
1.6 KiB

  1. ---
  2. - name: Fail if required FluffyChat Web settings not defined
  3. ansible.builtin.fail:
  4. msg: >
  5. You need to define a required configuration setting (`{{ item }}`) for using FluffyChat Web.
  6. when: "vars[item] == ''"
  7. with_items:
  8. - matrix_client_fluffychat_container_network
  9. - when: matrix_client_fluffychat_container_labels_traefik_enabled | bool
  10. block:
  11. - name: Fail if required matrix-client-fluffychat 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_fluffychat_container_labels_traefik_hostname
  18. - matrix_client_fluffychat_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_fluffychat_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_fluffychat_container_labels_traefik_path_prefix ends with a slash
  23. ansible.builtin.fail:
  24. msg: >-
  25. matrix_client_fluffychat_container_labels_traefik_path_prefix (`{{ matrix_client_fluffychat_container_labels_traefik_path_prefix }}`) must either be `/` or not end with a slash (e.g. `/fluffychat`).
  26. when: "matrix_client_fluffychat_container_labels_traefik_path_prefix != '/' and matrix_client_fluffychat_container_labels_traefik_path_prefix[-1] == '/'"