You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
988 B
36 lines
988 B
- name: Mise à jour de Splunk
|
|
hosts: splunk_uf_Linux
|
|
become: yes
|
|
become_user: "{{ privileged_user }}"
|
|
vars:
|
|
splunk_version_uf: "9.0.4-de405f4a7979-Linux-x86_64"
|
|
|
|
tasks:
|
|
|
|
- name: Extraire le fichier d'installation de Splunk
|
|
unarchive:
|
|
src: "/tmp/splunkforwarder-{{ splunk_version_uf }}.tgz"
|
|
dest: "/opt"
|
|
remote_src: yes
|
|
|
|
- name: Desactiver le démarrage automatique
|
|
shell: "/opt/splunkforwarder/bin/splunk disable boot-start"
|
|
|
|
- name: Arrêter le service Splunk
|
|
systemd:
|
|
name: splunk
|
|
state: stopped
|
|
|
|
- name: Mettre à jour Splunk
|
|
shell: "/opt/splunkforwarder/bin/splunk upgrade --accept-license --answer-yes"
|
|
args:
|
|
chdir: "/opt/splunkforwarder/bin"
|
|
become: yes
|
|
|
|
- name: Activer le démarrage automatique
|
|
shell: "/opt/splunkforwarder/bin/splunk enable boot-start"
|
|
|
|
- name: Redémarrer le service Splunk
|
|
systemd:
|
|
name: splunk
|
|
state: started |