fix(synapse): use correct key in hostvars

This commit is contained in:
transcaffeine 2024-10-07 18:18:03 +02:00
parent 0a8d128205
commit 2ec6bde3bd
Signed by: transcaffeine
GPG Key ID: 03624C433676E465

View File

@ -17,8 +17,8 @@
msg: "Required variable '{{ item }}' is undefined!" msg: "Required variable '{{ item }}' is undefined!"
loop: "{{ synapse_required_variables }}" loop: "{{ synapse_required_variables }}"
when: >-2 when: >-2
item not in hostvars[ansible_host] item not in hostvars[inventory_hostname]
or hostvars[ansible_host][item] | length == 0 or hostvars[inventory_hostname][item] | length == 0
- name: Ensure conditionally required variables are given - name: Ensure conditionally required variables are given
ansible.builtin.fail: ansible.builtin.fail: