From 875c6c0d861cdd5cfc92319629acf50384e51c8c Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Thu, 30 Mar 2023 21:01:27 +0200 Subject: [PATCH] Version Final --- Update_Splunk_UF.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Update_Splunk_UF.yml b/Update_Splunk_UF.yml index d1ef795..f2807db 100644 --- a/Update_Splunk_UF.yml +++ b/Update_Splunk_UF.yml @@ -13,19 +13,19 @@ dest: "/opt" remote_src: yes - - name: Desactiver le démarrage automatique - shell: "/opt/splunkforwarder/bin/splunk disable boot-start" + #- name: Desactiver le démarrage automatique + #shell: "/opt/splunkforwarder/bin/splunk disable boot-start" - - name: Arrêt de splunk - shell: "/opt/splunkforwarder/bin/splunk stop" + #- name: Arrêt de splunk + #shell: "/opt/splunkforwarder/bin/splunk stop" - name: Attribution des droits shell: "chown -R splunk:splunk /opt/splunkforwarder/*" - #- name: Arrêter le service Splunk - #systemd: - #name: splunk - #state: stopped + - name: Arrêter le service Splunk + systemd: + name: splunk + state: stopped - name: Mettre à jour le Splunk Universal Forwarder shell: "/opt/splunkforwarder/bin/splunk stop; /opt/splunkforwarder/bin/splunk start --accept-license --answer-yes --no-prompt --answer-accept-changes && /opt/splunkforwarder/bin/splunk enable boot-start -user splunk"