@ -31,20 +31,3 @@
with_items:
- /etc/init.d/splunk
- /etc/systemd/system/splunk.service
- 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
@ -30,28 +30,4 @@
state: absent
- /etc/init.d/Splunkforwarder
- /etc/systemd/system/Splunk.service
#- name: "Shutdown VM"
#reboot:
#reboot_timeout: 300
#async: 0
#poll: 0
@ -31,26 +31,3 @@