From a6cd06e813b7b91234c960a7e7e376de205e7442 Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Thu, 30 Mar 2023 16:27:56 +0200 Subject: [PATCH] ajout disable and enable boot-start --- Update_Splunk_UF.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Update_Splunk_UF.yml b/Update_Splunk_UF.yml index 9832727..28ee80c 100644 --- a/Update_Splunk_UF.yml +++ b/Update_Splunk_UF.yml @@ -13,6 +13,9 @@ dest: "/opt" remote_src: yes + - name: Desactiver le démarrage automatique + shell: "/opt/splunkforwarder/bin/splunk disable boot-start" + - name: Arrêter le service Splunk systemd: name: splunk @@ -24,6 +27,9 @@ chdir: "/opt/splunkforwarder/bin" become: yes + - name: Activer le démarrage automatique + shell: "/opt/splunkforwarder/bin/splunk enable boot-start" + - name: Redémarrer le service Splunk systemd: name: splunk