From d770c69aca74bacdb7296de440d310092ecc4f69 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Fri, 27 Jan 2023 11:01:41 +0000 Subject: [PATCH] moved 5.6.6 testing to main task Signed-off-by: Mark Bolwell --- tasks/section_5/cis_5.6.x.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tasks/section_5/cis_5.6.x.yml b/tasks/section_5/cis_5.6.x.yml index 184345b..349095a 100644 --- a/tasks/section_5/cis_5.6.x.yml +++ b/tasks/section_5/cis_5.6.x.yml @@ -112,16 +112,8 @@ - rule_5.6.5 - name: "5.6.6 | PATCH | Ensure root password is set" - block: - - name: "5.6.6 | PATCH | Ensure root password is set" - ansible.builtin.shell: passwd -S root | grep "Password set, SHA512 crypt" - changed_when: false - register: root_passwd - - - name: "5.6.6 | PATCH | Ensure root password is set" - ansible.builtin.fail: - msg: The root password is not set - when: root_passwd.rc != 0 + ansible.builtin.debug: + msg: "The root password has been set as per the assert in early stages" when: - rhel9cis_rule_5_6_6 tags: