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.
31 lines
919 B
31 lines
919 B
- name: Mise à jour de Splunk
|
|
hosts: splunk_uf_Linux
|
|
become: yes
|
|
become_user: root
|
|
|
|
tasks:
|
|
- name: Copier la sources sur le client
|
|
get_url:
|
|
url: "https://{{ repo_url }}/{{ projet }}/{{ app_name_uf }}"
|
|
dest: /tmp/
|
|
username: "{{ repo_user }}"
|
|
password: "{{ repo_password }}"
|
|
validate_certs: false
|
|
|
|
- name: Arrêter les processus Splunk
|
|
shell: "/opt/splunkforwarder/bin/splunk stop"
|
|
become: yes
|
|
|
|
- name: Extraire le fichier d'installation de Splunk
|
|
unarchive:
|
|
src: "/tmp/{{ app_name_uf }}"
|
|
dest: "/opt"
|
|
remote_src: yes
|
|
|
|
- name: Attribution des droits
|
|
shell: "chown -R splunk:splunk /opt/splunkforwarder/"
|
|
|
|
- name: Redémarrer le Splunk Universal Forwarder
|
|
shell: "/opt/splunkforwarder/bin/splunk start --accept-license --answer-yes --no-prompt"
|
|
become: yes
|