From c4d89a389963672e6b0ede7bcf3569aa27dda061 Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Fri, 31 Mar 2023 15:29:20 +0200 Subject: [PATCH] add wait boot --- Update_Splunk.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Update_Splunk.yml b/Update_Splunk.yml index cea0182..f98cbec 100644 --- a/Update_Splunk.yml +++ b/Update_Splunk.yml @@ -34,6 +34,16 @@ - name: Démarrer Splunk shell: "/opt/splunk/bin/splunk start --accept-license --answer-yes --no-prompt && /opt/splunk/bin/splunk enable boot-start -user splunk" + - name: Attente de la disponibilité de Splunk + uri: + url: "http://localhost:8000/" + return_content: no + status_code: 200 + register: result + retries: 30 + delay: 10 + until: result.status == 200 + - name: Appliquer les changements de configuration shell: "/opt/splunk/bin/splunk apply cluster-bundle --answer-yes --no-prompt"