From 5636f562f07e6284f01c471e0fdca0bc71881423 Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Mon, 27 Mar 2023 23:03:57 +0200 Subject: [PATCH] cv3 --- install_splunk_uf.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/install_splunk_uf.yml b/install_splunk_uf.yml index 4746375..c1ec34c 100755 --- a/install_splunk_uf.yml +++ b/install_splunk_uf.yml @@ -6,6 +6,16 @@ when: - splunk_get_fact is not defined + - name: "Start Splunk via cli" + command: "{{ splunk_exec_uf }} start --accept-license --answer-yes --no-prompt" + become: yes + become_user: "{{ privileged_user }}" + + - name: "Boot-Start Splunk via cli" + command: "{{ splunk_exec_uf }} enable boot-start" + become: yes + become_user: "{{ privileged_user }}" + - hosts: splunk_uf_Linux serial: - 1 @@ -14,16 +24,6 @@ - splunk_common_uf tags: all,installation - - name: "Start Splunk via cli" - command: "{{ splunk_exec_uf }} start --accept-license --answer-yes --no-prompt" - become: yes - become_user: "{{ privileged_user }}" - - - name: "Boot-Start Splunk via cli" - command: "{{ splunk_exec_uf }} enable boot-start" - become: yes - become_user: "{{ privileged_user }}" - - hosts: localhost connection: local tasks: