|
|
|
@ -20,16 +20,27 @@
|
|
|
|
#- name: "Copy SCP"
|
|
|
|
#- name: "Copy SCP"
|
|
|
|
#shell: scp admin@10.10.30.38:/tmp/splunkforwarder-8.2.3-cd0848707637-Linux-x86_64.tgz "{{ splunk_build_location_uf}}"
|
|
|
|
#shell: scp admin@10.10.30.38:/tmp/splunkforwarder-8.2.3-cd0848707637-Linux-x86_64.tgz "{{ splunk_build_location_uf}}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Copier depuis repo
|
|
|
|
- name: Récupérer le fichier depuis l'hôte source et le copier sur l'hôte distant
|
|
|
|
become: yes
|
|
|
|
hosts: SVLCTPSUPPFI02.mom.fr
|
|
|
|
|
|
|
|
become: true
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- name: Récupérer le fichier depuis l'hôte source
|
|
|
|
|
|
|
|
fetch:
|
|
|
|
|
|
|
|
src: /tmp/splunkforwarder-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:
|
|
|
|
copy:
|
|
|
|
src: /tmp/splunkforwarder-8.2.3-cd0848707637-Linux-x86_64.tgz
|
|
|
|
src: /tmp/splunkforwarder-8.2.3-cd0848707637-Linux-x86_64.tgz
|
|
|
|
dest: "{{ splunk_build_location_uf }}"
|
|
|
|
dest: "{{ splunk_build_location_uf }}"
|
|
|
|
remote_src: yes
|
|
|
|
|
|
|
|
owner: admin
|
|
|
|
owner: admin
|
|
|
|
group: admin
|
|
|
|
group: admin
|
|
|
|
mode: "0644"
|
|
|
|
mode: "0644"
|
|
|
|
delegate_to: 10.10.30.38
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Set splunk install fact"
|
|
|
|
- name: "Set splunk install fact"
|
|
|
|
set_fact:
|
|
|
|
set_fact:
|
|
|
|
|