|
|
|
|
@ -9,6 +9,24 @@
|
|
|
|
|
become: yes
|
|
|
|
|
register: pre_existing_splunk_exec
|
|
|
|
|
|
|
|
|
|
- name: Récupérer le fichier depuis l'hôte source
|
|
|
|
|
fetch:
|
|
|
|
|
src: /tmp/splunk-8.2.3-cd0848707637-Linux-x86_64.tgz
|
|
|
|
|
dest: /tmp/
|
|
|
|
|
flat: yes
|
|
|
|
|
validate_checksum: yes
|
|
|
|
|
fail_on_missing: yes
|
|
|
|
|
fail_on_unreachable: yes
|
|
|
|
|
delegate_to: 10.10.30.38
|
|
|
|
|
|
|
|
|
|
- name: Copier le fichier vers l'hôte distant
|
|
|
|
|
copy:
|
|
|
|
|
src: /tmp/splunk-8.2.3-cd0848707637-Linux-x86_64.tgz
|
|
|
|
|
dest: "{{ splunk_build_location }}"
|
|
|
|
|
owner: admin
|
|
|
|
|
group: admin
|
|
|
|
|
mode: "0644"
|
|
|
|
|
|
|
|
|
|
- name: "Set splunk install fact"
|
|
|
|
|
set_fact:
|
|
|
|
|
splunk_install: "{{ not pre_existing_splunk_exec.stat.exists | default(True) }}"
|
|
|
|
|
|