From c0ece7f57f31f45bb2085ba4b17145ffce458c81 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Fri, 29 Jul 2022 18:27:24 +0100 Subject: [PATCH] fix warn consistent missing ' Signed-off-by: Mark Bolwell --- tasks/section_1/cis_1.6.1.x.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/section_1/cis_1.6.1.x.yml b/tasks/section_1/cis_1.6.1.x.yml index 672316c..494176d 100644 --- a/tasks/section_1/cis_1.6.1.x.yml +++ b/tasks/section_1/cis_1.6.1.x.yml @@ -78,12 +78,12 @@ - name: "1.6.1.5 | AUDIT | Ensure no unconfined services exist | Message on unconfined services" debug: - msg: "Warning! You have unconfined services: {{ rhelcis_1_6_1_5_unconf_services.stdout_lines }}" + msg: "Warning!! You have unconfined services: {{ rhelcis_1_6_1_5_unconf_services.stdout_lines }}" when: rhelcis_1_6_1_5_unconf_services.stdout | length > 0 - name: "1.6.1.5 | AUDIT | Ensure no unconfined services exist | warning count" set_fact: - control_number: "{{ control_number }} + [ 'rule_1.6.1.5 ]" + control_number: "{{ control_number }} + [ 'rule_1.6.1.5' ]" warn_count: "{{ warn_count|int + 1 }}" when: rhelcis_1_6_1_5_unconf_services.stdout | length > 0 when: