1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Skip hosts with no state while iterating tasks in the linear strategy

Fixes #11693
This commit is contained in:
James Cammarata 2015-07-22 15:55:11 -04:00
parent 206ef27268
commit dfcf6a2016

View file

@ -82,7 +82,10 @@ class StrategyModule(StrategyBase):
# specified in the given hosts array
rvals = []
for host in hosts:
(s, t) = host_tasks[host.name]
host_state_task = host_tasks[host.name]
if host_state_task is None:
continue
(s, t) = host_state_task
if s.run_state == cur_state and s.cur_block == cur_block:
new_t = iterator.get_next_task_for_host(host)
#if new_t != t: