diff --git a/Maintenance/maint-reboot-required.yaml b/Maintenance/maint-reboot-required.yaml index 50aacf3..89e1908 100644 --- a/Maintenance/maint-reboot-required.yaml +++ b/Maintenance/maint-reboot-required.yaml @@ -25,7 +25,7 @@ - name: Get list of rebooted servers set_fact: - rebooted_servers: "{{ groups['all'] | intersect(reboot.results | selectattr('stat.exists') | map(attribute='ansible_host')) }}" + rebooted_servers: "{{ ansible_play_hosts | select('in', reboot) }}" - name: Send Teams notification run_once: true