Move checks into validate_config.yml.

This commit is contained in:
jakicoll
2023-02-06 15:21:10 +01:00
parent 6499b6536a
commit 6b206b3763
2 changed files with 10 additions and 7 deletions

View File

@ -0,0 +1,8 @@
---
- name: verify all necessary variables are present
assert:
that:
- matrix_user_verification_service_uvs_access_token is defined and matrix_user_verification_service_uvs_access_token|length
- matrix_user_verification_service_uvs_homeserver_url is defined and matrix_user_verification_service_uvs_homeserver_url|length
fail_msg: "Missing variable in {{ matrix_user_verification_service_ansible_name }} role"