removed bad iteration from execute meta (#19958)

* removed bad iteration from execute meta

most of the tasks should not be iterated over, others needed to include unreachable hosts
fixes #19673

* corrected host var
This commit is contained in:
Brian Coca 2017-01-13 14:51:39 -05:00 committed by GitHub
parent e9038d8dc1
commit 08ef0aee25
2 changed files with 42 additions and 42 deletions

View file

@ -218,7 +218,7 @@ class StrategyModule(StrategyBase):
if task.action == 'meta':
# for the linear strategy, we run meta tasks just once and for
# all hosts currently being iterated over rather than one host
results.extend(self._execute_meta(task, play_context, iterator))
results.extend(self._execute_meta(task, play_context, iterator, host))
if task.args.get('_raw_params', None) != 'noop':
run_once = True
else: