From 1ca5753d0f66c31e468e8ece568486663ef31d20 Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Mon, 27 Mar 2023 22:43:17 +0200 Subject: [PATCH] update correction --- install_splunk.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/install_splunk.yml b/install_splunk.yml index 052e130..6298d3d 100644 --- a/install_splunk.yml +++ b/install_splunk.yml @@ -5,16 +5,6 @@ when: - splunk_get_fact is not defined - - name: "Start Splunk via cli" - command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt" - become: yes - become_user: "{{ privileged_user }}" - - - name: "Boot-Start Splunk via cli" - command: "{{ splunk_exec }} enable boot-start" - become: yes - become_user: "{{ privileged_user }}" - - hosts: all_splunk_instances serial: - 1 @@ -49,4 +39,14 @@ path: /data_cold/splunk_data owner: splunk group: splunk - state: directory \ No newline at end of file + state: directory + + - name: "Start Splunk via cli" + command: "{{ splunk_exec }} start --accept-license --answer-yes --no-prompt" + become: yes + become_user: "{{ privileged_user }}" + + - name: "Boot-Start Splunk via cli" + command: "{{ splunk_exec }} enable boot-start" + become: yes + become_user: "{{ privileged_user }}"