From 939a06d3727bf64311effc242cdd35ce7b3926b0 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Mon, 23 Jan 2023 17:28:52 +0000 Subject: [PATCH] Ensure package installed Signed-off-by: Mark Bolwell --- tasks/section_3/cis_3.4.1.x.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/section_3/cis_3.4.1.x.yml b/tasks/section_3/cis_3.4.1.x.yml index ab15169..684d0a5 100644 --- a/tasks/section_3/cis_3.4.1.x.yml +++ b/tasks/section_3/cis_3.4.1.x.yml @@ -37,6 +37,11 @@ - item in ansible_facts.packages - rhel9cis_firewall == 'firewalld' + - name: "3.4.1.2 | PATCH | Ensure a single firewall configuration utility is in use | package installed" + ansible.builtin.package: + name: "{{ rhel9cis_firewall }}" + state: installed + - name: "3.4.1.2 | PATCH | Ensure a single firewall configuration utility is in use | {{ rhel9cis_firewall }} started and enabled" ansible.builtin.systemd: name: "{{ rhel9cis_firewall }}"