From 8f96eeba47a3d97d777713f6440702a9f03999ba Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Tue, 25 Apr 2023 12:30:24 +0200 Subject: [PATCH] playbooks_keys --- Deploy_Keys.yml | 14 ++++++++++++++ Deploy_Splunk.yml | 16 +--------------- 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 Deploy_Keys.yml 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