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"