I’m trying to copy over files with rsync. file creates main directory and any additional as catalogs. Owner and permission are set correctly. For now I only have a file in the catalogs directory. When synchronize kicks in it copies over the file, but changes the ownership of the directory and file to 1343414997:1778475765.
try to set owner=no group=no in the synchronize task.
The uid & gid from your host are not reflected on your target system.
Also, you could condense like:
file: path=/var/www/html/munki_repo/{{ item }} state=directory owner=munki group=munki recurse=yes
with_items:
- catalogs
- icons