From 9a18aace2f09e3e53f2957e065f32a23d56e7792 Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Mon, 6 Mar 2023 17:30:38 +0100 Subject: [PATCH] add Copy file --- .../tasks/pre_install_subtasks/get_facts.yml | 9 +++++++++ .../tasks/pre_install_subtasks/get_facts.yml | 9 +++++++++ 2 files changed, 18 insertions(+) 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) }}"