From cec3858f7d9cd1543103e407f0e9823c9bbb62fb Mon Sep 17 00:00:00 2001 From: transcaffeine Date: Thu, 14 Nov 2024 21:11:32 +0100 Subject: [PATCH] fix(synapse): look up hostvars by inventory_hostname --- roles/synapse/tasks/check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)