fix(synapse): look up hostvars by inventory_hostname

This commit is contained in:
transcaffeine 2024-11-14 21:11:32 +01:00
parent 65614491b3
commit cec3858f7d
Signed by: transcaffeine
GPG Key ID: 03624C433676E465

View File

@ -28,5 +28,5 @@
label: "{{ item.name }}" label: "{{ item.name }}"
when: >-2 when: >-2
item.when item.when
and (item.name not in hostvars[ansible_host] and (item.name not in hostvars[inventory_hostname]
or hostvars[ansible_host][item.name] | length == 0) or hostvars[inventory_hostname][item.name] | length == 0)