mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Properly fail out of the task loop in the linear strategy on failures (v2)
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user