mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Properly fail out of the task loop in the linear strategy on failures (v2)
This commit is contained in:
parent
fba5588028
commit
8fae2abed4
3 changed files with 19 additions and 1 deletions
|
@ -226,6 +226,9 @@ class StrategyModule(StrategyBase):
|
|||
# FIXME: this should also be moved to the base class in a method
|
||||
included_files = []
|
||||
for res in host_results:
|
||||
if res.is_failed():
|
||||
return 1
|
||||
|
||||
if res._task.action == 'include':
|
||||
if res._task.loop:
|
||||
include_results = res._result['results']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue