diff --git a/Deploy_Keys.yml b/Deploy_Keys.yml new file mode 100644 index 0000000..59312b6 --- /dev/null +++ b/Deploy_Keys.yml @@ -0,0 +1,14 @@ +--- +- name: "Récupération du trusted.pem" + become: yes + hosts: splunk_deployement + tasks: + - name: Backup_Keys_DSMC + include_tasks: roles/splunk_deploy/tasks/Backup_Keys_DSMC.yml + +- name: "Copie du trusted.pem" + become: yes + hosts: all:!splunk_uf_Linux:!splunk_deployement + tasks: + - name: Deploy_Keys_to_others + include_tasks: roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml diff --git a/Deploy_Splunk.yml b/Deploy_Splunk.yml index 8f2c182..7c3ad06 100644 --- a/Deploy_Splunk.yml +++ b/Deploy_Splunk.yml @@ -42,18 +42,4 @@ hosts: all:!splunk_uf_Linux tasks: - name: Stop_SPL - include_tasks: roles/splunk_deploy/tasks/Stop_SPL.yml - -- name: "Récupération du trusted.pem" - become: yes - hosts: splunk_deployement - tasks: - - name: Backup_Keys_DSMC - include_tasks: roles/splunk_deploy/tasks/Backup_Keys_DSMC.yml - -- name: "Copie du trusted.pem" - become: yes - hosts: all:!splunk_uf_Linux:!splunk_deployement - tasks: - - name: Deploy_Keys_to_others - include_tasks: roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml + include_tasks: roles/splunk_deploy/tasks/Stop_SPL.yml \ No newline at end of file