From 0c475871271e1a0a18625e907e526f89f870f1b0 Mon Sep 17 00:00:00 2001 From: Mathieu Fortin Date: Wed, 5 Jun 2024 14:03:21 -0400 Subject: [PATCH] test Signed-off-by: fortinm --- tasks/section_4/cis_4.1.1.x.yml | 2 +- tasks/section_4/cis_4.1.2.x.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/section_4/cis_4.1.1.x.yml b/tasks/section_4/cis_4.1.1.x.yml index 8b85947..a9a0ac0 100644 --- a/tasks/section_4/cis_4.1.1.x.yml +++ b/tasks/section_4/cis_4.1.1.x.yml @@ -34,7 +34,7 @@ - name: "4.1.1.3 | PATCH | Ensure auditing for processes that start prior to auditd is enabled" block: - name: "4.1.1.3 | PATCH | Ensure auditing for processes that start prior to auditd is enabled | Get Grub CMDLINE Settings" - shell: grep -v -E '^GRUB_CMDLINE_LINUX(_DEFAULT)?=' /etc/default/grub + shell: grep -c -E '^GRUB_CMDLINE_LINUX(_DEFAULT)?=' /etc/default/grub changed_when: false failed_when: false register: amazon2cis_4_1_1_3_grub_cmdline_linux diff --git a/tasks/section_4/cis_4.1.2.x.yml b/tasks/section_4/cis_4.1.2.x.yml index 5035d1f..15afb76 100644 --- a/tasks/section_4/cis_4.1.2.x.yml +++ b/tasks/section_4/cis_4.1.2.x.yml @@ -55,7 +55,7 @@ - name: "4.1.2.4 | PATCH | Ensure audit_backlog_limit is sufficient" block: - name: "4.1.2.4 | AUDIT | Ensure audit_backlog_limit is sufficient | Grep GRUB_CMDLINE_LINUX parameter" - shell: grep -v -E 'GRUB_CMDLINE_LINUX(_DEFAULT)?=' /etc/default/grub + shell: grep -c -E 'GRUB_CMDLINE_LINUX(_DEFAULT)?=' /etc/default/grub changed_when: false failed_when: false register: amazon2cis_4_1_2_4_grub_cmdline_linux_settings