JocelynPa 3 years ago
parent 5d473bc607
commit 954b2a0198

@ -1,19 +1,20 @@
--- ---
- name: "Récupération du trusted.pem" - name: "Récupération du trusted.pem"
hosts: splunk_deployement
become: yes become: yes
tasks: tasks:
- name: "Backup_Keys_DSMC" - name: "Backup_Keys_DSMC"
include_tasks: "roles/splunk_deploy/tasks/Backup_Keys_DSMC.yml" include_tasks: "roles/splunk_deploy/tasks/Backup_Keys_DSMC.yml"
hosts: splunk_deployement register: trusted_file
- name: "Deploy_Keys_to_others"
include_tasks: "roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml"
hosts: all:!splunk_uf_Linux:!splunk_deployement
# - name: "Copie du trusted.pem"
# become: yes - name: "Copie du trusted.pem"
# hosts: all:!splunk_uf_Linux:!splunk_deployement become: yes
# gather_facts: no hosts: all:!splunk_uf_Linux:!splunk_deployement
# tasks: gather_facts: no
# - name: Deploy_Keys_to_others tasks:
# include_tasks: roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml - name: Deploy_Keys_to_others
include_tasks: roles/splunk_deploy/tasks/Deploy_Keys_to_others.yml
vars:
trusted_file_path: "{{ trusted_file.stdout }}"

Loading…
Cancel
Save