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