change list task
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user