From 904d7811d428f5324b439c92d08165c14be3827e Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Thu, 26 Jan 2023 08:29:54 +0000 Subject: [PATCH] moved when to same line Signed-off-by: Mark Bolwell --- tasks/section_3/cis_3.4.2.x.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/section_3/cis_3.4.2.x.yml b/tasks/section_3/cis_3.4.2.x.yml index 38c1efa..540bda0 100644 --- a/tasks/section_3/cis_3.4.2.x.yml +++ b/tasks/section_3/cis_3.4.2.x.yml @@ -10,8 +10,7 @@ - name: "3.4.2.1 | AUDIT | Ensure firewalld default zone is set" ansible.builtin.command: firewall-cmd --set-default-zone="{{ rhel9cis_default_zone }}" - when: - - firewalld_zone_set.rc != 0 + when: firewalld_zone_set.rc != 0 when: - rhel9cis_firewall == "firewalld" - rhel9cis_rule_3_4_2_1