From 20e29864068e9383d58ef62f15f4a4853a29679a Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Wed, 5 Jun 2024 17:10:22 +0100 Subject: [PATCH] capture only configuratoin lines from rsyslog Signed-off-by: Mark Bolwell --- tasks/section_4/cis_4.2.1.x.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/section_4/cis_4.2.1.x.yml b/tasks/section_4/cis_4.2.1.x.yml index a3f2a44..740f820 100644 --- a/tasks/section_4/cis_4.2.1.x.yml +++ b/tasks/section_4/cis_4.2.1.x.yml @@ -59,7 +59,7 @@ - name: "4.2.1.5 | PATCH | Ensure logging is configured" block: - name: "4.2.1.5 | AUDIT | Ensure logging is configured | rsyslog current config message out" - ansible.builtin.shell: cat /etc/rsyslog.conf + ansible.builtin.shell: cat /etc/rsyslog.conf | grep -Ev "^#|^$" changed_when: false failed_when: false check_mode: false