The pattern is to just shell out to chmod/chown since the changed detection and reporting of changes would be squirrely.
People think you can just chmod every directory along the line but you can't, the rules along the way might need to be different at different levels, which is why this is not recursive. On Wed, May 7, 2014 at 8:45 PM, <[email protected]> wrote: > Hello, > > I haven't found a way to recursively apply attributes (user/group/mode) to > just > files or just directories in a recursive way. A common use case is > wanting a > directory structure to be 0755 and files 0644 - there appears to way to do > that > currently using a module. Only command or shell chmod -R would work in > this > case it seems. > > Regards, > --Ed > > -- > 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/ddcb4353-61be-4ae8-8585-a44b2f85578f%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/ddcb4353-61be-4ae8-8585-a44b2f85578f%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%2BnsWgxg17u5%2Bh8SSUm7j44J58AU-Z3MQaVjw4VnvjnguVwVPQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
