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
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.
If you REAAAAAAALLLLY need it, I suggest 2 tasks, the first finds the directories you want to change:
or something similar.