Kaynağa Gözat

Move checks into validate_config.yml.

pull/2375/head
jakicoll 3 yıl önce
ebeveyn
işleme
6b206b3763
2 değiştirilmiş dosya ile 10 ekleme ve 7 silme
  1. +2
    -7
      roles/custom/matrix-user-verification-service/tasks/main.yml
  2. +8
    -0
      roles/custom/matrix-user-verification-service/tasks/validate_config.yml

+ 2
- 7
roles/custom/matrix-user-verification-service/tasks/main.yml Dosyayı Görüntüle

@@ -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:
- 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
ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"
tags:


+ 8
- 0
roles/custom/matrix-user-verification-service/tasks/validate_config.yml Dosyayı Görüntüle

@@ -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"

Yükleniyor…
İptal
Kaydet