From 87edc3338f312ff3a5c5c20866939b0e4ff36b58 Mon Sep 17 00:00:00 2001 From: admingit Date: Thu, 21 Nov 2024 22:16:47 +0100 Subject: [PATCH] ligne initial disk # --- install_splunk.yml | 16 ++++++++-------- .../tasks/pre_install_subtasks/get_facts.yml | 15 +++++++++------ 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/install_splunk.yml b/install_splunk.yml index e6611a2..e72f3b9 100755 --- a/install_splunk.yml +++ b/install_splunk.yml @@ -3,15 +3,15 @@ # - name: Gathering Facts # include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_idx.yml -- hosts: splunk_cluster_master - tasks: - - name: Gathering Facts - include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_other.yml +#- hosts: splunk_cluster_master +# tasks: +# - name: Gathering Facts +# include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_other.yml -- hosts: splunk_search_head - tasks: - - name: Gathering Facts - include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_other.yml +#- hosts: splunk_search_head +# tasks: +# - name: Gathering Facts +# include_tasks: roles/splunk_common/tasks/pre_install_subtasks/config_lvm_other.yml - hosts: all_splunk_instances:!splunk_uf_Linux:!splunk_uf_Windows tasks: 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 150b64d..17df3be 100755 --- a/roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml +++ b/roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml @@ -4,12 +4,15 @@ privileged_user: "{% if ansible_system is match('CYGWIN*|Win32NT') %}Administrator{% else %}root{% endif %}" - name: Copier la sources sur le client - get_url: - url: "https://{{ repo_url }}/{{ projet }}/{{ app_name }}" - dest: /tmp/ - username: "{{ repo_user }}" - password: "{{ repo_password }}" - validate_certs: false + become: yes + become_user: root + shell: scp admin@10.10.40.21:{{ splunk_build_location }} /tmp/ +# get_url: +# url: "https://{{ repo_url }}/{{ projet }}/{{ app_name }}" +# dest: /tmp/ +# username: "{{ repo_user }}" +# password: "{{ repo_password }}" +# validate_certs: false - name: "Check for existing installation" stat: