From cc871b55d5de6bd13ac75e00ba9b33a9163f450b Mon Sep 17 00:00:00 2001 From: JocelynPa Date: Tue, 25 Apr 2023 15:23:50 +0200 Subject: [PATCH] test1223 --- Deploy_Keys.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/Deploy_Keys.yml b/Deploy_Keys.yml index 8456e0b..2619e8d 100644 --- a/Deploy_Keys.yml +++ b/Deploy_Keys.yml @@ -1,20 +1,29 @@ --- - name: "Récupération du trusted.pem" - hosts: splunk_deployement + #hosts: splunk_deployement become: yes tasks: - name: "Backup_Keys_DSMC" include_tasks: "roles/splunk_deploy/tasks/Backup_Keys_DSMC.yml" + vars: + target_hosts: splunk_deployement register: trusted_file - - -- name: "Copie du trusted.pem" - become: yes - hosts: all:!splunk_uf_Linux:!splunk_deployement - gather_facts: no - tasks: - name: Deploy_Keys_to_others include_tasks: roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml vars: trusted_file_path: "{{ trusted_file.stdout }}" + target_hosts: all:!splunk_uf_Linux:!splunk_deployement + + + + +# - name: "Copie du trusted.pem" +# become: yes +# hosts: all:!splunk_uf_Linux:!splunk_deployement +# gather_facts: no +# tasks: +# - name: Deploy_Keys_to_others +# include_tasks: roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml +# vars: +# trusted_file_path: "{{ trusted_file.stdout }}"