Matrix Docker Ansible eploy
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 

41 рядки
2.8 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']"
  29. - name: (Deprecation) Catch and report renamed matrix-authentication-service settings
  30. ansible.builtin.fail:
  31. msg: >-
  32. Your configuration contains a variable, which now has a different name.
  33. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  34. when: "item.old in vars"
  35. with_items:
  36. - {'old': 'matrix_authentication_service_container_image_name_prefix', 'new': 'matrix_authentication_service_container_image_registry_prefix'}