From 8c59010e3948ceac2363bbf9dd09f4119f9b1848 Mon Sep 17 00:00:00 2001 From: admingit Date: Wed, 9 Aug 2023 16:33:18 +0200 Subject: [PATCH] remove_restart --- Deleted_Splunk.yml | 17 ----------------- Deleted_SplunkForwarder.yml | 26 +------------------------- Deleted_SplunkHeavyForwarder.yml | 23 ----------------------- 3 files changed, 1 insertion(+), 65 deletions(-) diff --git a/Deleted_Splunk.yml b/Deleted_Splunk.yml index 8a4325b..d13cb55 100644 --- a/Deleted_Splunk.yml +++ b/Deleted_Splunk.yml @@ -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 diff --git a/Deleted_SplunkForwarder.yml b/Deleted_SplunkForwarder.yml index 6609c04..d7eaeed 100644 --- a/Deleted_SplunkForwarder.yml +++ b/Deleted_SplunkForwarder.yml @@ -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 \ No newline at end of file diff --git a/Deleted_SplunkHeavyForwarder.yml b/Deleted_SplunkHeavyForwarder.yml index c7a7c7f..3695b3a 100644 --- a/Deleted_SplunkHeavyForwarder.yml +++ b/Deleted_SplunkHeavyForwarder.yml @@ -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