added debug
This commit is contained in:
@@ -14,11 +14,6 @@
|
|||||||
ansible.builtin.reboot:
|
ansible.builtin.reboot:
|
||||||
when: reboot.stat.exists
|
when: reboot.stat.exists
|
||||||
|
|
||||||
- name: Pause for 15 seconds
|
|
||||||
ansible.builtin.pause:
|
|
||||||
seconds: 15
|
|
||||||
when: reboot.stat.exists
|
|
||||||
|
|
||||||
- name: Wait for systems to become reachable
|
- name: Wait for systems to become reachable
|
||||||
wait_for_connection:
|
wait_for_connection:
|
||||||
delay: 30
|
delay: 30
|
||||||
@@ -28,6 +23,10 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
rebooted_servers: "{{ ansible_play_hosts | select('in', reboot) }}"
|
rebooted_servers: "{{ ansible_play_hosts | select('in', reboot) }}"
|
||||||
|
|
||||||
|
- name: Debug rebooted servers
|
||||||
|
debug:
|
||||||
|
var: rebooted_servers
|
||||||
|
|
||||||
- name: Send Teams notification
|
- name: Send Teams notification
|
||||||
run_once: true
|
run_once: true
|
||||||
uri:
|
uri:
|
||||||
|
|||||||
Reference in New Issue
Block a user