From de04e05e74531db24d81593ae7f784211ba11eee Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Tue, 7 Mar 2023 16:15:43 +0100 Subject: [PATCH] copy fetch --- .../tasks/pre_install_subtasks/get_facts.yml | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/roles/splunk_common_uf/tasks/pre_install_subtasks/get_facts.yml b/roles/splunk_common_uf/tasks/pre_install_subtasks/get_facts.yml index c46af40..f0518bc 100755 --- a/roles/splunk_common_uf/tasks/pre_install_subtasks/get_facts.yml +++ b/roles/splunk_common_uf/tasks/pre_install_subtasks/get_facts.yml @@ -9,13 +9,25 @@ become: yes register: pre_existing_splunk_exec -- name: "Copier la source" +#- name: "Copier la source" + #fetch: + #src: "http://10.10.30.12:3000/admingit/Splunk_Installation/src/branch/master/Apps_for_Splunk/Sources/splunkforwarder-8.2.3-cd0848707637-Linux-x86_64.tgz" + #dest: "{{ splunk_build_location_uf }}" + #flat: yes + #emote_src: yes + #become: yes + +- name: Fetch from Git + run_once: yes fetch: - src: "http://10.10.30.12:3000/admingit/Splunk_Installation/src/branch/master/Apps_for_Splunk/Sources/splunkforwarder-8.2.3-cd0848707637-Linux-x86_64.tgz" + src: "{{ playbook_dir }}/Apps_for_Splunk/Sources/splunkforwarder-8.2.3-cd0848707637-Linux-x86_64.tgz" + dest: "/tmp" + when: 10.10.30.12 + +- name: Copy to Splunk + copy: + src: "/tmp" dest: "{{ splunk_build_location_uf }}" - flat: yes - remote_src: yes - become: yes - name: "Set splunk install fact" set_fact: