Update roles/os_hardening/tasks/user_accounts.yml

Co-authored-by: schurzi <Martin.Schurz@t-systems.com>
This commit is contained in:
Sebastian Gumprich 2021-03-22 09:05:57 +01:00 committed by Sebastian Gumprich
parent c86bdcb4c7
commit bf82736787

View file

@ -58,8 +58,8 @@
- name: set ownership of /home directories to 0700 - name: set ownership of /home directories to 0700
file: file:
mode: 0700 mode: 0700
path: "{{ item }}" path: "{{ item.path }}"
state: directory state: directory
loop: loop:
- "{{ home_directories.files | map(attribute='path') | list }}" - "{{ home_directories.files }}"
when: os_chmod_home_folders | bool when: os_chmod_home_folders | bool