From 461bde4db5f4a1b2a6129d3da872dee8c890ca9a Mon Sep 17 00:00:00 2001 From: Danny de Kooker Date: Sat, 8 Jun 2024 15:52:01 +0200 Subject: [PATCH] debug --- Maintenance/maint-reboot-required.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Maintenance/maint-reboot-required.yaml b/Maintenance/maint-reboot-required.yaml index 80bf8cf..86ebfad 100644 --- a/Maintenance/maint-reboot-required.yaml +++ b/Maintenance/maint-reboot-required.yaml @@ -26,7 +26,7 @@ - name: Gather rebooted_servers list set_fact: - rebooted_servers_all: "{{ hostvars|select('rebooted_servers is defined')|map(attribute='rebooted_servers')|list }}" + rebooted_servers_all: "{{ hostvars|selectattr('rebooted_servers', 'defined')|map(attribute='rebooted_servers')|list }}" run_once: true - name: Debug rebooted servers