From 5469adcf4b187add41be57a85805043436c3af2d Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Thu, 13 Jan 2022 15:31:02 +0000 Subject: [PATCH] Set boolean true/false Signed-off-by: Mark Bolwell --- tasks/post.yml | 2 +- tasks/section_4/cis_4.2.1.x.yml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tasks/post.yml b/tasks/post.yml index 89d8584..c51fc76 100644 --- a/tasks/post.yml +++ b/tasks/post.yml @@ -3,7 +3,7 @@ - name: Perform DNF package cleanup dnf: - autoremove: yes + autoremove: true changed_when: no - name: trigger update sysctl diff --git a/tasks/section_4/cis_4.2.1.x.yml b/tasks/section_4/cis_4.2.1.x.yml index 63b86c5..addf906 100644 --- a/tasks/section_4/cis_4.2.1.x.yml +++ b/tasks/section_4/cis_4.2.1.x.yml @@ -16,7 +16,7 @@ - name: "4.2.1.2 | L1 | PATCH | Ensure rsyslog Service is enabled" service: name: rsyslog - enabled: yes + enabled: true when: - rhel9cis_rule_4_2_1_2 tags: @@ -46,10 +46,10 @@ shell: cat /etc/rsyslog.conf args: warn: false - become: yes + become: true changed_when: false - failed_when: no - check_mode: no + failed_when: false + check_mode: false register: rhel_09_4_2_1_4_audit - name: "4.2.1.4 | L1 | AUDIT | Ensure logging is configured | rsyslog current config message out" @@ -157,7 +157,7 @@ with_items: - '^(\$ModLoad imtcp)' - '^(\$InputTCPServerRun)' - when: not rhel9cis_system_is_log_server + when: falset rhel9cis_system_is_log_server - name: "4.2.1.6 | L1 | PATCH | Ensure remote rsyslog messages are only accepted on designated log hosts. | When log host" replace: