Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

39 linhas
1.8 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Verify homeserver_url is not empty
  6. ansible.builtin.assert:
  7. that:
  8. - matrix_user_verification_service_uvs_homeserver_url|length > 0
  9. fail_msg: "Missing variable in {{ matrix_user_verification_service_ansible_name }} role"
  10. - name: Verify Auth is configured properly or disabled
  11. ansible.builtin.assert:
  12. that:
  13. - matrix_user_verification_service_uvs_access_token|length > 0 or not matrix_user_verification_service_uvs_require_auth|bool
  14. fail_msg: "If Auth is enabled, a valid (non empty) TOKEN must be given in 'matrix_user_verification_service_uvs_access_token'."
  15. - name: Verify server_name for openid verification is given, if pinning a single server_name is enabled.
  16. ansible.builtin.assert:
  17. that:
  18. - matrix_user_verification_service_uvs_openid_verify_server_name|length > 0 or not matrix_user_verification_service_uvs_pin_openid_verify_server_name|bool
  19. fail_msg: "If pinning a single server_name is enabled, a valid (non empty) server_name must be given in 'matrix_user_verification_service_uvs_openid_verify_server_name'."
  20. - name: Verify the homeserver implementation is synapse
  21. ansible.builtin.assert:
  22. that:
  23. - matrix_homeserver_implementation == 'synapse'
  24. fail_msg: "The User-Verification-Service requires Synapse as homeserver implementation"
  25. - name: Fail if required matrix-user-verification-service settings not defined
  26. ansible.builtin.fail:
  27. msg: >-
  28. You need to define a required configuration setting (`{{ item.name }}`).
  29. when: "item.when | bool and vars[item.name] == ''"
  30. with_items:
  31. - {'name': 'matrix_user_verification_service_uvs_homeserver_url', when: true}
  32. - {'name': 'matrix_user_verification_service_container_network', when: true}