diff --git a/Copy_Files.yml b/Copy_Files.yml new file mode 100644 index 0000000..dc9906a --- /dev/null +++ b/Copy_Files.yml @@ -0,0 +1,10 @@ +- name: "Copy source Splunk" + hosts: all_splunk_instances + tasks: + - name: "Copy file" + copy: + src: "{{ repo_build_location }}" + dest: "{{ splunk_build_location }}" + remote_src: True + delegate_to: "{{ host_repo }}" + become: yes \ No newline at end of file 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 9445ec3..2fdde54 100644 --- a/roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml +++ b/roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml @@ -9,17 +9,6 @@ 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 }}" - become: yes - - - name: "Set splunk install fact" set_fact: splunk_install: "{{ not pre_existing_splunk_exec.stat.exists | default(True) }}"