mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07:00
Ensure play order is obeyed (#49897)
* Ensure play order is obeyed it was being ignored depending on other options also added tests for each order (except shuffle) both serial and not fixes #49846
This commit is contained in:
parent
6583ed0df9
commit
cfba6dfe91
8 changed files with 59 additions and 3 deletions
|
@ -190,7 +190,7 @@ class PlayIterator:
|
|||
|
||||
self._host_states = {}
|
||||
start_at_matched = False
|
||||
batch = inventory.get_hosts(self._play.hosts)
|
||||
batch = inventory.get_hosts(self._play.hosts, order=self._play.order)
|
||||
self.batch_size = len(batch)
|
||||
for host in batch:
|
||||
self._host_states[host.name] = HostState(blocks=self._blocks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue