Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

38 satır
1.7 KiB

  1. ---
  2. - name: Fail if required Sygnal settings not defined
  3. ansible.builtin.fail:
  4. msg: >
  5. You need to define a required configuration setting (`{{ item }}`).
  6. when: "vars[item] == ''"
  7. with_items:
  8. - matrix_sygnal_hostname
  9. - matrix_sygnal_path_prefix
  10. - matrix_sygnal_container_network
  11. - when: matrix_sygnal_container_labels_traefik_enabled | bool
  12. block:
  13. - name: Fail if required Sygnal Traefik settings not defined
  14. ansible.builtin.fail:
  15. msg: >-
  16. You need to define a required configuration setting (`{{ item }}`).
  17. when: "vars[item] == ''"
  18. with_items:
  19. - matrix_sygnal_container_labels_traefik_hostname
  20. - matrix_sygnal_container_labels_traefik_path_prefix
  21. # We ensure it doesn't end with a slash, because we handle both (slash and no-slash).
  22. # Knowing that `matrix_sygnal_container_labels_traefik_path_prefix` does not end with a slash
  23. # ensures we know how to set these routes up without having to do "does it end with a slash" checks elsewhere.
  24. - name: Fail if matrix_sygnal_container_labels_traefik_path_prefix ends with a slash
  25. ansible.builtin.fail:
  26. msg: >-
  27. matrix_sygnal_container_labels_traefik_path_prefix (`{{ matrix_sygnal_container_labels_traefik_path_prefix }}`) must either be `/` or not end with a slash (e.g. `/sygnal`).
  28. when: "matrix_sygnal_container_labels_traefik_path_prefix != '/' and matrix_sygnal_container_labels_traefik_path_prefix[-1] == '/'"
  29. - name: Fail if no Sygnal apps defined
  30. ansible.builtin.fail:
  31. msg: >-
  32. Enabling Sygnal requires that you specify at least one app in `matrix_sygnal_apps`
  33. when: "matrix_sygnal_apps | length == 0"