diff --git a/Deleted_Splunk.yml b/Deleted_Splunk.yml index d165ee8..8a4325b 100644 --- a/Deleted_Splunk.yml +++ b/Deleted_Splunk.yml @@ -34,3 +34,17 @@ - name: "Shutdown VM" shell: shutdown -r now + + - name: Wait for the reboot and reconnect + 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