Brian Coca 2 weeks ago committed by GitHub
commit ed5ea1bbea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -637,9 +637,17 @@ class StrategyBase:
elif task_result.is_unreachable():
ignore_unreachable = original_task.ignore_unreachable
if not ignore_unreachable:
self._tqm._unreachable_hosts[original_host.name] = True
iterator._play._removed_hosts.append(original_host.name)
self._tqm._stats.increment('dark', original_host.name)
delegated_host = task_result.get('ansible_delegated_host', None)
if original_task.delegate_to is not None and delegated_host:
self._tqm._unreachable_hosts[delegated_host] = True
iterator._play._removed_hosts.append(delegated_host)
if original_host.name not in self._tqm._unreachable_hosts:
iterator.mark_host_failed(original_host)
self._tqm._stats.increment('failures', original_host.name)
else:
self._tqm._unreachable_hosts[original_host.name] = True
iterator._play._removed_hosts.append(original_host.name)
self._tqm._stats.increment('dark', original_host.name)
else:
self._tqm._stats.increment('ok', original_host.name)
self._tqm._stats.increment('ignored', original_host.name)

Loading…
Cancel
Save