|
|
|
|
@ -158,6 +158,40 @@
|
|
|
|
|
splunk_version: "9.1.2-b6b9c8185839-Linux-x86_64"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
- name: Arrêter les processus Splunk
|
|
|
|
|
shell: "/opt/splunk/bin/splunk stop"
|
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
|
|
- name: Extraire le fichier d'installation de Splunk
|
|
|
|
|
unarchive:
|
|
|
|
|
src: "/tmp/splunk-{{ splunk_version }}.tgz"
|
|
|
|
|
dest: "/opt"
|
|
|
|
|
remote_src: yes
|
|
|
|
|
|
|
|
|
|
- name: Attribution des droits
|
|
|
|
|
shell: "chown -R splunk:splunk /opt/splunk/*"
|
|
|
|
|
|
|
|
|
|
- name: Mettre à jour Splunk
|
|
|
|
|
shell: "/opt/splunk/bin/splunk start --accept-license --answer-yes --no-prompt"
|
|
|
|
|
|
|
|
|
|
- name: Vérifier l'état de Splunk
|
|
|
|
|
wait_for:
|
|
|
|
|
host: localhost
|
|
|
|
|
port: 8089
|
|
|
|
|
delay: 10
|
|
|
|
|
timeout: 180
|
|
|
|
|
state: started
|
|
|
|
|
msg: "Splunk n'a pas redémarré correctement"
|
|
|
|
|
|
|
|
|
|
- name: Mettre à jour le license master
|
|
|
|
|
hosts: splunk_licence_master
|
|
|
|
|
become: yes
|
|
|
|
|
become_user: root
|
|
|
|
|
vars:
|
|
|
|
|
splunk_version: "9.1.2-b6b9c8185839-Linux-x86_64"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
- name: Arrêter les processus Splunk
|
|
|
|
|
shell: "/opt/splunk/bin/splunk stop"
|
|
|
|
|
|