Quantcast
Viewing all articles
Browse latest Browse all 17

Ansible: How to recursively set directory and file permissions

In ansible, I can do this:

file: dest=/foo/bar/somedir owner=root group=apache mode=0775 recurse=yes

And it recursively sets the owner, group, and permissions to 0775 on all directories and files in that path. But I want to set directories to 0775, and files to 0664. Is there some way to make ansible do this?


Viewing all articles
Browse latest Browse all 17

Trending Articles