diff --git a/roles/synapse/tasks/check.yml b/roles/synapse/tasks/check.yml index 7f887f5..84e4b2d 100644 --- a/roles/synapse/tasks/check.yml +++ b/roles/synapse/tasks/check.yml @@ -28,5 +28,5 @@ label: "{{ item.name }}" when: >-2 item.when - and (item.name not in hostvars[ansible_host] - or hostvars[ansible_host][item.name] | length == 0) + and (item.name not in hostvars[inventory_hostname] + or hostvars[inventory_hostname][item.name] | length == 0)