parent
1698d6956f
commit
33611b890c
@ -0,0 +1,26 @@
|
||||
- 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: Arrêter le service Splunk
|
||||
systemd:
|
||||
name: splunk
|
||||
state: stopped
|
||||
|
||||
- name: Extraire le fichier d'installation de Splunk
|
||||
unarchive:
|
||||
src: "/tmp/splunkforwarder-{{ splunk_version_uf }}.tgz"
|
||||
dest: "/opt"
|
||||
remote_src: yes
|
||||
|
||||
- name: Attribution des droits
|
||||
shell: "chown -R splunk:splunk /opt/splunkforwarder/*"
|
||||
|
||||
- name: Mettre à jour le Splunk Universal Forwarder
|
||||
shell: "/opt/splunkforwarder/bin/splunk stop; /opt/splunkforwarder/bin/splunk start --accept-license --answer-yes --no-prompt"
|
||||
become: yes
|
||||
Loading…
Reference in new issue