diff --git a/Copy_keysV2.yml b/Copy_keysV2.yml index f01db73..c87564c 100644 --- a/Copy_keysV2.yml +++ b/Copy_keysV2.yml @@ -17,8 +17,7 @@ become_user: root tasks: - name: Copier le fichier trusted - delegate_to: SVLCTPLOGSUP01.mom.fr - fetch: - src: /opt/splunk/etc/auth/distServerKeys/trusted.pem - dest: /tmp/ - remote_src: True + ansible.posix.synchronize: + mode: pull + src: rsync://SVLCTPLOGSUP01.mom.fr/opt/splunk/etc/auth/distServerKeys/trusted.pem + dest: /tmp/ \ No newline at end of file