quick fix for 83292

>
> Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
pull/83388/head
Thomas Wang 6 months ago committed by s-hertel
parent bdc1cdfa54
commit 4a285808b0

@ -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:

Loading…
Cancel
Save