From 4705e361bff2340f390a10685a85df78739a78f0 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Tue, 23 Aug 2022 12:21:39 +0100 Subject: [PATCH] All passwords are expired during hardening #22 Signed-off-by: Mark Bolwell --- tasks/section_5/cis_5.6.1.x.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/section_5/cis_5.6.1.x.yml b/tasks/section_5/cis_5.6.1.x.yml index 790e876..4addbc5 100644 --- a/tasks/section_5/cis_5.6.1.x.yml +++ b/tasks/section_5/cis_5.6.1.x.yml @@ -117,7 +117,7 @@ - name: "5.6.1.5 | PATCH | Ensure all users last password change date is in the past | Fix accounts with pw change in the future" command: passwd --expire {{ item }} when: - - rhel9cis_5_6_1_5_user_list | length > 0 + - rhel9cis_5_6_1_5_user_list.stdout | length > 0 - rhel9cis_futurepwchgdate_autofix with_items: - "{{ rhel9cis_5_6_1_5_user_list.stdout_lines }}"