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 }}"