From 65431405dd8ee6c1a4065964ef803d1af72083d6 Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Mon, 24 Apr 2023 19:53:57 +0200 Subject: [PATCH] .. --- Deploy_Splunk.yml | 6 ++++++ roles/splunk_deploy/tasks/Restart_SPL.yml | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 roles/splunk_deploy/tasks/Restart_SPL.yml diff --git a/Deploy_Splunk.yml b/Deploy_Splunk.yml index d66aff5..9529a85 100644 --- a/Deploy_Splunk.yml +++ b/Deploy_Splunk.yml @@ -22,6 +22,12 @@ - name: Deploy_Configuration include_tasks: roles/splunk_deploy/tasks/Deploy_Conf_SHC_Init.yml +- name: "Restart de fin d'initialisation Splunk" + become: yes + hosts: all:!splunk_uf_Linux + tasks: + - name: Deploy_Configuration + include_tasks: roles/splunk_deploy/tasks/Restart_SPL.yml - name: "Deploy Configuration Bootstrap SHC" become: yes diff --git a/roles/splunk_deploy/tasks/Restart_SPL.yml b/roles/splunk_deploy/tasks/Restart_SPL.yml new file mode 100644 index 0000000..37280c1 --- /dev/null +++ b/roles/splunk_deploy/tasks/Restart_SPL.yml @@ -0,0 +1,4 @@ +- name: "Stop Splunk via cli" + command: "{{ splunk_exec }} restart" + become: yes + become_user: "{{ privileged_user }}" \ No newline at end of file