remove_restart

master
admingit 3 years ago
parent 2c1c67c26d
commit 8c59010e39

@ -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
with_items:
- /etc/init.d/Splunkforwarder
- /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
#- name: "Shutdown VM"
#reboot:
#reboot_timeout: 300
#async: 0
#poll: 0
- /etc/systemd/system/Splunk.service

@ -31,26 +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
#- name: "Shutdown VM"
#reboot:
#reboot_timeout: 300
#async: 0
#poll: 0

Loading…
Cancel
Save