From 467434a56f5dce96bcfb6467b4ee429d121ffdbf Mon Sep 17 00:00:00 2001 From: John Foster Date: Mon, 19 Feb 2024 12:03:08 +0000 Subject: [PATCH] Added blank line between each named task for consistency. Signed-off-by: John Foster --- tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 84bc1ae..40f49af 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -34,6 +34,7 @@ msg: "No local account found for {{ ansible_env.SUDO_USER }} user. Skipping local account checks." when: - rhel9cis_ansible_user_password_set.stdout == "not found" + - name: "Check local account" block: - name: "Check password set for {{ ansible_env.SUDO_USER }} | Assert local password set" @@ -43,6 +44,7 @@ - rhel9cis_ansible_user_password_set.stdout != "!!" fail_msg: "You have {{ sudo_password_rule }} enabled but the user = {{ ansible_env.SUDO_USER }} has no password set - It can break access" success_msg: "You have a password set for the {{ ansible_env.SUDO_USER }} user" + - name: "Check account is not locked for {{ ansible_env.SUDO_USER }} | Assert local account not locked" ansible.builtin.assert: that: