added new 'order' directive to sort hosts in play

fixes #10964
This commit is contained in:
Brian Coca 2017-03-10 19:13:17 -05:00 committed by Brian Coca
commit 6b46cc5c73
5 changed files with 29 additions and 6 deletions

View file

@ -167,7 +167,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]
hosts_left = self.get_hosts_left(iterator)
display.debug("done getting the remaining hosts for this loop")
# queue up this task for each host in the inventory