From d98c9439b8f345aa6d451fb1916f447a639ed987 Mon Sep 17 00:00:00 2001 From: mhorak Date: Thu, 14 Aug 2025 09:28:49 +0000 Subject: [PATCH] Update win-updates-troubleshooting.yaml --- win-updates-troubleshooting.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/win-updates-troubleshooting.yaml b/win-updates-troubleshooting.yaml index ff9fdf6..3810959 100644 --- a/win-updates-troubleshooting.yaml +++ b/win-updates-troubleshooting.yaml @@ -254,3 +254,9 @@ when: sp_create is succeeded debug: var: sp_create.json.id + + # flip the AWX job status based on your aggregate + - name: Mark AWX job as FAILED if any host failed + when: status_final == 'failed' + fail: + msg: "Patch run failed on hosts: {{ failed_hosts_csv }}"