mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07:00
Fix include in loop when stategy=free (#33094)
This commit is contained in:
parent
e65ef09aa9
commit
3a2a1e054f
5 changed files with 20 additions and 1 deletions
|
@ -431,7 +431,7 @@ class PlayIterator:
|
|||
|
||||
# we're advancing blocks, so if this was an end-of-role block we
|
||||
# mark the current role complete
|
||||
if block._eor and host.name in block._role._had_task_run and not in_child:
|
||||
if block._eor and host.name in block._role._had_task_run and not in_child and not peek:
|
||||
block._role._completed[host.name] = True
|
||||
else:
|
||||
task = block.always[state.cur_always_task]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue