mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 01:33:09 +00:00
When serializing inventory, pop from the start of the hosts list
Fixes #8646
This commit is contained in:
@@ -677,7 +677,7 @@ class PlayBook(object):
|
||||
play_hosts = []
|
||||
for x in range(serial):
|
||||
if len(all_hosts) > 0:
|
||||
play_hosts.append(all_hosts.pop())
|
||||
play_hosts.append(all_hosts.pop(0))
|
||||
serialized_batch.append(play_hosts)
|
||||
|
||||
task_errors = False
|
||||
|
||||
Reference in New Issue
Block a user