I would like to allow all users to list and read all files in my directory tree, but I do not want the files to be executed:
dir \subdir1 file1 \subdir2 file2 ... \subdirX fileX
The following task makes my directories and files readable, but also makes all files executable:
- name: Make my directory tree readable file: path: dir mode: 0755 recurse: yes
On the other hand, if I select 0644 mode, then all my files are not executed, but I cannot list my directories.
Is it possible to set the mode to 755 for all directories and 644 for all files in the directory tree?
Thank.
file-permissions ansible
mykola Feb 28 '15 at 6:05 2015-02-28 06:05
source share