From 77a73ddcae8ab4cc6e7440c650d5d7d868bd6064 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Mon, 25 Jul 2022 11:28:50 +0100 Subject: [PATCH] tidy up warning message Signed-off-by: Mark Bolwell --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index a55063a..62875c2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -181,8 +181,9 @@ when: - run_audit -- name: Output Warning count and control IDs affected +- name: If Warnings found Output count and control IDs affected debug: msg: "You have {{ warn_count }} warning(s) that require investigating that are related to the following benchmark ID(s) {{ control_number }}" + when: warn_count > 0 tags: - always