From f1cd7a99be683c7e2bd02b9895aa7da74a182a24 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 21 May 2018 12:25:52 -0400 Subject: [PATCH] remove extra ) (cherry picked from commit 062f0444a1c48bc3c24c00ba4150cfa9fac1d05d) --- changelogs/fragments/meta_rc_runone.yml | 2 ++ lib/ansible/plugins/strategy/linear.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/meta_rc_runone.yml diff --git a/changelogs/fragments/meta_rc_runone.yml b/changelogs/fragments/meta_rc_runone.yml new file mode 100644 index 00000000000..ee8f9cfb1dd --- /dev/null +++ b/changelogs/fragments/meta_rc_runone.yml @@ -0,0 +1,2 @@ +- bugfixes: + - reset connection is not run once https://github.com/ansible/ansible/issues/39364 diff --git a/lib/ansible/plugins/strategy/linear.py b/lib/ansible/plugins/strategy/linear.py index ff51b7d35cd..06d585afbcc 100644 --- a/lib/ansible/plugins/strategy/linear.py +++ b/lib/ansible/plugins/strategy/linear.py @@ -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