From f22748ac5f0cee5fd2889066447c67355895d168 Mon Sep 17 00:00:00 2001 From: Dan D Date: Wed, 25 Oct 2023 15:35:41 -0700 Subject: [PATCH] rule 1.5.4 adds when condition package list to service action Signed-off-by: Dan D --- tasks/section_1/cis_1.5.x.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/section_1/cis_1.5.x.yml b/tasks/section_1/cis_1.5.x.yml index 153edf12..b4bedc2d 100644 --- a/tasks/section_1/cis_1.5.x.yml +++ b/tasks/section_1/cis_1.5.x.yml @@ -70,6 +70,8 @@ name: apport state: stopped enabled: false + when: + - "'apport' in ansible_facts.packages" - name: "1.5.4 | PATCH | Ensure Automatic Error Reporting is not enabled | remove package" ansible.builtin.package: