|
|
|
@ -43,23 +43,23 @@
|
|
|
|
- name: Boot-start Enable
|
|
|
|
- name: Boot-start Enable
|
|
|
|
shell: "/opt/splunk/bin/splunk enable boot-start"
|
|
|
|
shell: "/opt/splunk/bin/splunk enable boot-start"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Attente de la disponibilité de Splunk
|
|
|
|
#- name: Attente de la disponibilité de Splunk
|
|
|
|
uri:
|
|
|
|
#uri:
|
|
|
|
url: "http://localhost:8000/"
|
|
|
|
#url: "http://localhost:8000/"
|
|
|
|
return_content: no
|
|
|
|
#return_content: no
|
|
|
|
status_code: 200
|
|
|
|
#status_code: 200
|
|
|
|
register: result
|
|
|
|
#register: result
|
|
|
|
retries: 30
|
|
|
|
#retries: 30
|
|
|
|
delay: 10
|
|
|
|
#delay: 10
|
|
|
|
until: result.status == 200
|
|
|
|
#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"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Redémarrer le service Splunk
|
|
|
|
#- name: Redémarrer le service Splunk
|
|
|
|
systemd:
|
|
|
|
#systemd:
|
|
|
|
name: splunk
|
|
|
|
#name: splunk
|
|
|
|
state: started
|
|
|
|
#state: started
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#- name: Sauvegarder la configuration et les données
|
|
|
|
#- name: Sauvegarder la configuration et les données
|
|
|
|
|