diff --git a/Restart_Splunk.yml b/Restart_Splunk.yml index 2f8366a..688a46a 100644 --- a/Restart_Splunk.yml +++ b/Restart_Splunk.yml @@ -1,11 +1,27 @@ --- -- name: Restart Splunk +- name: Restart Cluster_SH become: yes become_user: "{{ privileged_user }}" - hosts: all + hosts: splunk_search_head tasks: - name: "Start Splunk via cli" command: "{{ splunk_exec }} restart" +# - name: "Start Splunk via cli" +# command: "{{ splunk_exec_uf }} restart" + +- name: Restart Cluster_IDX + become: yes + become_user: "{{ privileged_user }}" + hosts: splunk_indexer + tasks: + - name: "Start Splunk via cli" + command: "{{ splunk_exec }} restart" + +- name: Restart Cluster_Master + become: yes + become_user: "{{ privileged_user }}" + hosts: splunk_cluster_master + tasks: - name: "Start Splunk via cli" - command: "{{ splunk_exec_uf }} restart" \ No newline at end of file + command: "{{ splunk_exec }} restart" \ No newline at end of file diff --git a/Update_SplunkV2.yml b/Update_SplunkV2.yml index 9f90211..ddd6377 100644 --- a/Update_SplunkV2.yml +++ b/Update_SplunkV2.yml @@ -6,7 +6,7 @@ become_user: root shell: scp admin@10.10.40.21:/tmp/splunk-9.1.2-b6b9c8185839-Linux-x86_64.tgz /tmp/ -- name: Mettre à jour le cluster de Search Head +- name: Mettre à jour le DSMC hosts: splunk_deployement become: yes become_user: root @@ -74,7 +74,7 @@ state: started msg: "Splunk n'a pas redémarré correctement" -- name: Mettre à jour un cluster Splunk avec un fichier .tgz +- name: Mettre à jour un cluster Idx hosts: splunk_indexer become: yes become_user: root