@ -33,7 +33,25 @@
- /etc/systemd/system/Splunk.service
- name: "Shutdown VM"
reboot:
shell: shutdown -r now
reboot_timeout: 300
async: 0
- name: Wait for the reboot and reconnect
poll: 0
wait_for:
port: 22
search_regex: OpenSSH
delay: 10
timeout: 60
connection: local
- name: Check the Uptime of the servers
shell: "uptime"
register: Uptime
- debug: var=Uptime
#- name: "Shutdown VM"
#reboot:
#reboot_timeout: 300
#async: 0
#poll: 0
@ -33,7 +33,24 @@
- /etc/systemd/system/splunk.service