|
|
|
@ -7,6 +7,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Arrêter le service Splunk
|
|
|
|
|
|
|
|
systemd:
|
|
|
|
|
|
|
|
name: splunk
|
|
|
|
|
|
|
|
state: stopped
|
|
|
|
|
|
|
|
|
|
|
|
- name: Extraire le fichier d'installation de Splunk
|
|
|
|
- name: Extraire le fichier d'installation de Splunk
|
|
|
|
unarchive:
|
|
|
|
unarchive:
|
|
|
|
src: "/tmp/splunkforwarder-{{ splunk_version_uf }}.tgz"
|
|
|
|
src: "/tmp/splunkforwarder-{{ splunk_version_uf }}.tgz"
|
|
|
|
@ -30,11 +35,6 @@
|
|
|
|
- name: Attribution des droits
|
|
|
|
- name: Attribution des droits
|
|
|
|
shell: "chown -R splunk:splunk /opt/splunkforwarder/*"
|
|
|
|
shell: "chown -R splunk:splunk /opt/splunkforwarder/*"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Arrêter le service Splunk
|
|
|
|
|
|
|
|
systemd:
|
|
|
|
|
|
|
|
name: splunk
|
|
|
|
|
|
|
|
state: stopped
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Mettre à jour le Splunk Universal Forwarder
|
|
|
|
- name: Mettre à jour le Splunk Universal Forwarder
|
|
|
|
shell: "/opt/splunkforwarder/bin/splunk stop; /opt/splunkforwarder/bin/splunk start --accept-license --answer-yes --no-prompt --answer-accept-changes && /opt/splunkforwarder/bin/splunk enable boot-start -user splunk"
|
|
|
|
shell: "/opt/splunkforwarder/bin/splunk stop; /opt/splunkforwarder/bin/splunk start --accept-license --answer-yes --no-prompt --answer-accept-changes && /opt/splunkforwarder/bin/splunk enable boot-start -user splunk"
|
|
|
|
become: yes
|
|
|
|
become: yes
|
|
|
|
|