From 02113b783aca242fe952ed68cf41889232e37b00 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Fri, 20 Jan 2023 13:36:34 +0000 Subject: [PATCH] Addec changed_when 6.2.1 Signed-off-by: Mark Bolwell --- tasks/section_6/cis_6.2.x.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/section_6/cis_6.2.x.yml b/tasks/section_6/cis_6.2.x.yml index 647a150..27c101d 100644 --- a/tasks/section_6/cis_6.2.x.yml +++ b/tasks/section_6/cis_6.2.x.yml @@ -4,6 +4,7 @@ block: - name: "6.2.1 | AUDIT | Ensure accounts in /etc/passwd use shadowed passwords | discover" ansible.builtin.shell: awk -F':' '($2 != "x" ) { print $1 " is not set to shadowed passwords "}' /etc/passwd + changed_when: false register: shadow_passwd - name: "6.2.1 | AUDIT | Ensure accounts in /etc/passwd use shadowed passwords | Output"