Hi all, I want do this command line in ansible :
*cp -rp /home/user/file1 /home/user/directory2/file2* I have find this module copy : - name: example copying file with owner and permissions copy: src: /srv/myfiles/foo.conf dest: /etc/foo.conf owner: foo group: foo mode: 0644 this task works But this task not sauvegarde all caracteristic of file1 (*date create*, etc ...) as linux command *"cp -rp /**home/user/file1 /home/user/directory2/file2"* Someone have an idea please ? Thanks community ansible !! ;) Regards, -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3e32d0c9-630d-4903-b42e-988233716e3c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.