diff --git a/roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml b/roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml index 2fdde54..9873eb9 100644 --- a/roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml +++ b/roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml @@ -9,6 +9,15 @@ become: yes register: pre_existing_splunk_exec +- name: "Copy source Splunk" + tasks: + - name: "Copy file" + copy: + src: "{{ repo_build_location }}" + dest: "{{ splunk_build_location }}" + remote_src: True + delegate_to: "{{ host_repo }}" + - name: "Set splunk install fact" set_fact: splunk_install: "{{ not pre_existing_splunk_exec.stat.exists | default(True) }}" 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 8a2bc19..61365d9 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,6 +9,15 @@ become: yes register: pre_existing_splunk_exec +- name: "Copy source SplunkForwarder" + tasks: + - name: "Copy file" + copy: + src: "{{ repo_build_location_uf }}" + dest: "{{ splunk_build_location_uf }}" + remote_src: True + delegate_to: "{{ host_repo }}" + - name: "Set splunk install fact" set_fact: splunk_install: "{{ not pre_existing_splunk_exec.stat.exists | default(True) }}"