2
0

added debug

This commit is contained in:
2024-06-08 15:23:02 +02:00
parent 1b36a9af16
commit 7fc9121dd5

View File

@@ -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: