Add new meta task end_host (#47194)

* Add new meta task  end_host
This commit is contained in:
Martin Krizek 2018-11-14 15:46:25 +01:00 committed by Brian Coca
parent 24593f2ffb
commit 907ff2f26c
8 changed files with 69 additions and 2 deletions

View file

@ -265,7 +265,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) not in ('noop', 'reset_connection'):
if task.args.get('_raw_params', None) not in ('noop', 'reset_connection', 'end_host'):
run_once = True
if (task.any_errors_fatal or run_once) and not task.ignore_errors:
any_errors_fatal = True