Hi, michael.

Thank you for your reply. But I still do not understand.

"The source permissions on the local filesystem are not used."

When I copy some file on the local filesystem to remote locations, I may
use this method like "copy: src=./test dest=/work/".

But the problem is that there are many files with different permissions in
a folder "./test", each file separately set mode too much trouble.

Should we do it like the following example?

- copy: src=./test/aa1.sh dest=/work/test/ mode=700
- copy: src=./test/aa2.sh dest=/work/test/ mode=600
- copy: src=./test/aa3.sh dest=/work/test/ mode=777
- copy: src=./test/aa4.sh dest=/work/test/ mode=700
- copy: src=./test/aa5.sh dest=/work/test/ mode=600
- copy: src=./test/aa6.sh dest=/work/test/ mode=777
- copy: src=./test/aa7.sh dest=/work/test/ mode=700

This should not be reasonable.


2014-08-29 19:59 GMT+08:00 Michael DeHaan <[email protected]>:

> If you want to control the file permissions when placing a file, also be
> aware you have access to the "mode" parameter.
>
> The source permissions on the local filesystem are not used.
>
> If you are instead saying when replacing the file on the destination that
> the permissions change, let us know.
>
>

-- 
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/CADy8dsAqohe0gEa9p6XVDmHSYtqVwZfC0DwTVv_NSL_RTucmuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to