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: