From c4290467a91eb0cd53f48e14f9e63f4731f3d4ff Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Mon, 27 Mar 2023 23:14:22 +0200 Subject: [PATCH] add task --- install_splunk_uf.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/install_splunk_uf.yml b/install_splunk_uf.yml index c1ec34c..bf833ba 100755 --- a/install_splunk_uf.yml +++ b/install_splunk_uf.yml @@ -6,6 +6,16 @@ when: - splunk_get_fact is not defined +- hosts: splunk_uf_Linux + serial: + - 1 + - 100% + roles: + - splunk_common_uf + tags: all,installation + +- hosts: splunk_uf_Linux + tasks: - name: "Start Splunk via cli" command: "{{ splunk_exec_uf }} start --accept-license --answer-yes --no-prompt" become: yes @@ -16,14 +26,6 @@ become: yes become_user: "{{ privileged_user }}" -- hosts: splunk_uf_Linux - serial: - - 1 - - 100% - roles: - - splunk_common_uf - tags: all,installation - - hosts: localhost connection: local tasks: