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.
 

>     - name: create directory
>       file: path=/var/www/html/munki_repo state=directory owner=munki 
> group=munki
>
>     - name: additional directories
>       file: path=/var/www/html/munki_repo/catalogs state=directory 
> owner=munki group=munki
>

    - name: additional directories
>       file: path=/var/www/html/munki_repo/icons state=directory 
> owner=munki group=munki 
>

>     - name: rsync
>       synchronize: 
> src=/Users/niko.stojanovski/vagrant/vagrant-centos-6.5/munki_repo 
> dest=/var/www/html/munki_repo recursive=yes rsync_path="sudo rsync"
>

 

 

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a007cabd-4f92-4321-9bc8-a0bc3cd809ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to