Properly fail out of the task loop in the linear strategy on failures (v2)

This commit is contained in:
James Cammarata 2015-05-05 13:41:32 -05:00
commit 8fae2abed4
3 changed files with 19 additions and 1 deletions

View file

@ -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']