From 82ecce3da4e7cc24d3c3feae45243a632b905f2e Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Thu, 9 Mar 2023 18:53:25 +0100 Subject: [PATCH] updateV61 --- Deploy_Conf.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Deploy_Conf.yml b/Deploy_Conf.yml index 44f24a3..70402ba 100644 --- a/Deploy_Conf.yml +++ b/Deploy_Conf.yml @@ -42,6 +42,11 @@ path: /opt/splunk/etc/apps/01-Conf_deploy_client state: absent force: yes + - name: Supprimer le répertoire non fonctionnel dans Splunk + file: + path: /opt/splunkforwarder/etc/apps/01-Conf_deploy_client + state: absent + force: yes - name: Copier le répertoire dans Splunk copy: @@ -53,10 +58,4 @@ - name: "Start Splunk via cli" command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt" become: yes - become_user: "{{ splunk_user }}" - register: start_splunk - changed_when: start_splunk.rc == 0 and 'already running' not in start_splunk.stdout - when: - - not splunk_enable_service or pid1 is not defined - - splunk_status.rc != 0 - ignore_errors: yes \ No newline at end of file + become_user: "{{ splunk_user }}" \ No newline at end of file