From 248e852465a96acb00ae4fc993779234384a69ee Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Thu, 27 Apr 2023 21:05:58 +0200 Subject: [PATCH] =?UTF-8?q?add=20privil=C3=A8ge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Shutdown_Splunk.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Shutdown_Splunk.yml b/Shutdown_Splunk.yml index 8425a8c..f90a837 100644 --- a/Shutdown_Splunk.yml +++ b/Shutdown_Splunk.yml @@ -1,6 +1,7 @@ --- - name: "Shutdown Infra Splunk" become: yes + become_user: "{{ privileged_user }}" hosts: splunk_indexer tasks: - name: "Stop IDX" @@ -8,6 +9,7 @@ - name: "Shutdown Infra Splunk" become: yes + become_user: "{{ privileged_user }}" hosts: splunk_search_head tasks: - name: "Stop SH" @@ -15,6 +17,7 @@ - name: "Shutdown Infra Splunk" become: yes + become_user: "{{ privileged_user }}" hosts: splunk_deployement tasks: - name: "Stop DSMC" @@ -22,6 +25,7 @@ - name: "Shutdown Infra Splunk" become: yes + become_user: "{{ privileged_user }}" hosts: splunk_uf_Linux tasks: - name: "Stop FW"