From 0f659d699e24891eb3948445a3c4ea3009c7fd9f Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Mon, 16 May 2016 20:29:42 -0400 Subject: [PATCH] Re-remove checking for failed state on hosts when building list of hosts This was re-added by 63471cd (and modified by me to use iterator again), it simply needs to be removed. Fixes #15395 --- lib/ansible/plugins/strategy/linear.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/strategy/linear.py b/lib/ansible/plugins/strategy/linear.py index 6b505230e3..0b8f0318c6 100644 --- a/lib/ansible/plugins/strategy/linear.py +++ b/lib/ansible/plugins/strategy/linear.py @@ -163,7 +163,7 @@ class StrategyModule(StrategyBase): try: display.debug("getting the remaining hosts for this loop") - hosts_left = [host for host in self._inventory.get_hosts(iterator._play.hosts) if host.name not in self._tqm._unreachable_hosts and not iterator.is_failed(host)] + hosts_left = [host for host in self._inventory.get_hosts(iterator._play.hosts) if host.name not in self._tqm._unreachable_hosts] display.debug("done getting the remaining hosts for this loop") # queue up this task for each host in the inventory