From 4a285808b068c3ec8cfece842d24a8ad690f3bd9 Mon Sep 17 00:00:00 2001 From: Thomas Wang Date: Wed, 5 Jun 2024 00:04:10 +1000 Subject: [PATCH] quick fix for 83292 > > Co-authored-by: Martin Krizek --- lib/ansible/plugins/strategy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/strategy/__init__.py b/lib/ansible/plugins/strategy/__init__.py index efd69efe9b4..7665c8f6ff2 100644 --- a/lib/ansible/plugins/strategy/__init__.py +++ b/lib/ansible/plugins/strategy/__init__.py @@ -600,7 +600,7 @@ class StrategyBase: # save the current state before failing it for later inspection state_when_failed = iterator.get_state_for_host(original_host.name) display.debug("marking %s as failed" % original_host.name) - if original_task.run_once: + if original_task.run_once and not original_task.any_errors_fatal: # if we're using run_once, we have to fail every host here for h in self._inventory.get_hosts(iterator._play.hosts): if h.name not in self._tqm._unreachable_hosts: