add wait boot

master
JocelynPa 3 years ago
parent ce5a83e36a
commit c4d89a3899

@ -34,6 +34,16 @@
- name: Démarrer Splunk - 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" 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 - name: Appliquer les changements de configuration
shell: "/opt/splunk/bin/splunk apply cluster-bundle --answer-yes --no-prompt" shell: "/opt/splunk/bin/splunk apply cluster-bundle --answer-yes --no-prompt"

Loading…
Cancel
Save