From 34a5da29960e455dedb35af485b85e210abb17a0 Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Mon, 6 Mar 2023 20:24:03 +0100 Subject: [PATCH] update --- Copy_Files.yml | 10 ++++++++++ .../tasks/pre_install_subtasks/get_facts.yml | 11 ----------- 2 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 Copy_Files.yml 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) }}"