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

44 řádky
2.2 KiB

  1. ---
  2. - name: Verify homeserver_url is not empty
  3. ansible.builtin.assert:
  4. that:
  5. - matrix_user_verification_service_uvs_homeserver_url|length > 0
  6. fail_msg: "Missing variable in {{ matrix_user_verification_service_ansible_name }} role"
  7. - name: Verify Auth is configured properly or disabled
  8. ansible.builtin.assert:
  9. that:
  10. - matrix_user_verification_service_uvs_access_token|length > 0 or not matrix_user_verification_service_uvs_require_auth|bool
  11. fail_msg: "If Auth is enabled, a valid (non empty) TOKEN must be given in 'matrix_user_verification_service_uvs_access_token'."
  12. - name: Verify server_name for openid verification is given, if pinning a single server_name is enabled.
  13. ansible.builtin.assert:
  14. that:
  15. - matrix_user_verification_service_uvs_openid_verify_server_name|length > 0 or not matrix_user_verification_service_uvs_pin_openid_verify_server_name|bool
  16. 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'."
  17. - name: Verify the homeserver implementation is synapse
  18. ansible.builtin.assert:
  19. that:
  20. - matrix_homeserver_implementation == 'synapse'
  21. fail_msg: "The User-Verification-Service requires Synapse as homeserver implementation"
  22. - name: Fail if required matrix-user-verification-service settings not defined
  23. ansible.builtin.fail:
  24. msg: >-
  25. You need to define a required configuration setting (`{{ item.name }}`).
  26. when: "item.when | bool and vars[item.name] == ''"
  27. with_items:
  28. - {'name': 'matrix_user_verification_service_uvs_homeserver_url', when: true}
  29. - {'name': 'matrix_user_verification_service_container_network', when: true}
  30. - name: (Deprecation) Catch and report renamed matrix-user-verification-service variables
  31. ansible.builtin.fail:
  32. msg: >-
  33. Your configuration contains a variable, which now has a different name.
  34. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  35. when: "item.old in vars"
  36. with_items:
  37. - {'old': 'matrix_user_verification_service_docker_image_name_prefix', 'new': 'matrix_user_verification_service_docker_image_registry_prefix'}