--- - 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