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ů.
 
 

32 řádky
2.3 KiB

  1. ---
  2. - name: Fail if required matrix-authentication-service settings not defined
  3. ansible.builtin.fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item.name }}`).
  6. when: "item.when | bool and vars[item.name] | length == 0"
  7. with_items:
  8. - {'name': 'matrix_authentication_service_hostname', when: true}
  9. - {'name': 'matrix_authentication_service_config_database_username', when: true}
  10. - {'name': 'matrix_authentication_service_config_database_password', when: true}
  11. - {'name': 'matrix_authentication_service_config_database_host', when: true}
  12. - {'name': 'matrix_authentication_service_config_database_database', when: true}
  13. - {'name': 'matrix_authentication_service_config_secrets_encryption', when: true}
  14. - {'name': 'matrix_authentication_service_config_matrix_homeserver', when: true}
  15. - {'name': 'matrix_authentication_service_config_matrix_secret', when: true}
  16. - {'name': 'matrix_authentication_service_config_matrix_endpoint', when: true}
  17. - {'name': 'matrix_authentication_service_container_labels_public_main_hostname', when: "{{ matrix_authentication_service_container_labels_traefik_enabled }}"}
  18. - {'name': 'matrix_authentication_service_container_labels_public_compatibility_layer_hostname', when: "{{ matrix_authentication_service_container_labels_public_compatibility_layer_enabled }}"}
  19. - {'name': 'matrix_authentication_service_container_labels_internal_compatibility_layer_entrypoints', when: "{{ matrix_authentication_service_container_labels_internal_compatibility_layer_enabled }}"}
  20. - {'name': 'matrix_authentication_service_config_email_hostname', when: "{{ matrix_authentication_service_config_email_transport == 'smtp' }}"}
  21. - name: Fail if matrix_authentication_service_config_secrets_encryption is not 64 characters long
  22. ansible.builtin.fail:
  23. msg: "matrix_authentication_service_config_secrets_encryption must be exactly 64 characters long (preferably generated via `openssl rand -hex 32`)"
  24. when: "matrix_authentication_service_config_secrets_encryption | length != 64"
  25. - name: Fail if matrix_authentication_service_config_email_transport is invalid
  26. ansible.builtin.fail:
  27. msg: "matrix_authentication_service_config_email_transport must be one of: blackhole, smtp, or aws_ses"
  28. when: "matrix_authentication_service_config_email_transport not in ['blackhole', 'smtp', 'aws_ses']"