mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-10 12:47:39 +01:00
Move checks into validate_config.yml.
This commit is contained in:
parent
6499b6536a
commit
6b206b3763
@ -1,13 +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"
|
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
- when: matrix_jitsi_enabled | bool
|
||||||
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
|
||||||
- when: run_setup | bool and matrix_user_verification_service_enabled | bool
|
- when: run_setup | bool and matrix_user_verification_service_enabled | bool
|
||||||
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
|
||||||
tags:
|
tags:
|
||||||
|
@ -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"
|
Loading…
Reference in New Issue
Block a user