Ansible does have a recursive copy, so I imagine you are requesting a
change in the permissions structure?

I'd also recommend the synchronize module versus passing recurse to the
copy module.  It's backed by rsync and is much more efficient.



On Thu, Jul 17, 2014 at 5:40 AM, Paul Tötterman <[email protected]>
wrote:

> I'm really not interested in tool comparisons here, but Puppet has not
>> done the recursive thing either and actually takes the position you have to
>> spec out every file path along the way.
>>
>
> I suspect Damien meant:
>
> file { '/target':
>   source => 'file:///source',
>   recurse => true,
>   mode => '0644',
> }
>
> If /source contains a directory hierarchy, then all files contained will
> be copied to /target with mode '0644' and all directories (including
> /target itself) with mode '0755'.
>
> That can be quite useful.
>
> Cheers,
> Paul
>
> --
> 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/e0c99ebb-53c8-40ea-97ba-b69145063bc8%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e0c99ebb-53c8-40ea-97ba-b69145063bc8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgz7-U4dd9bss5imZ%3DTvsAeAC_aWYwrQrh%2BLD0WzvUs96Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to