kubeasz/roles/os-harden/tasks/find_files.yml

13 lines
307 B
YAML
Raw Normal View History

2018-09-17 23:23:56 +08:00
- name: find directories for minimizing access
find:
paths: '{{ outer_item }}'
recurse: yes
register: minimize_access_directories
- name: minimize access on found files
file:
path: '{{ item.path }}'
mode: 'go-w'
state: file
with_items: '{{ minimize_access_directories.files }}'