From d734a902b79bdb5deafc9c1f1e4c2c1e8d8146b6 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Thu, 14 Sep 2023 16:52:38 +0100 Subject: [PATCH] updated assert for workflow run Signed-off-by: Mark Bolwell --- tasks/pre_remediation_audit.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/pre_remediation_audit.yml b/tasks/pre_remediation_audit.yml index e8e1daba..e7b7319c 100644 --- a/tasks/pre_remediation_audit.yml +++ b/tasks/pre_remediation_audit.yml @@ -64,9 +64,8 @@ - name: Pre Audit Setup | If audit ensure goss is available ansible.builtin.assert: + that: goss_available.stat.exists msg: "Audit has been selected: unable to find goss binary at {{ audit_bin }}" - when: - - not goss_available.stat.exists when: - run_audit