From 02c689eaa01fc116dcb5080dcc02a6c0c7f1aacb Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Mon, 22 Mar 2021 11:08:51 +0100 Subject: [PATCH] fix loop for home_directories Signed-off-by: Sebastian Gumprich --- roles/os_hardening/tasks/user_accounts.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/os_hardening/tasks/user_accounts.yml b/roles/os_hardening/tasks/user_accounts.yml index 009cc84a..ede92594 100644 --- a/roles/os_hardening/tasks/user_accounts.yml +++ b/roles/os_hardening/tasks/user_accounts.yml @@ -60,6 +60,5 @@ mode: 0700 path: "{{ item.path }}" state: directory - loop: - - "{{ home_directories.files }}" + loop: "{{ home_directories.files }}" when: os_chmod_home_folders | bool