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