reset_connection is not run_once

This commit is contained in:
Brian Coca 2018-05-21 12:10:12 -04:00 committed by Brian Coca
parent b845db0169
commit ee95b71f7b

View file

@ -263,7 +263,7 @@ class StrategyModule(StrategyBase):
# 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, host))
if task.args.get('_raw_params', None) != 'noop':
if task.args.get('_raw_params', None) not in ('noop', 'reset_connection')):
run_once = True
else:
# handle step if needed, skip meta actions as they are used internally