From 46a3a6a03e3b5e20965ff9d8f4c69009b4987bf8 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 14 Jan 2016 17:21:15 -0800 Subject: [PATCH] Non-newstyle modules can't use pipelining This is because we pass arguments to non-newstyle modules via an external file. If we pipeline, then the interpreter thinks it has to run the arguments as the script instead of what is piped in via stdin. --- lib/ansible/plugins/action/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index 2461d9cf7dd..5ae27c2e056 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -424,7 +424,7 @@ class ActionBase(with_metaclass(ABCMeta, object)): cmd = "" in_data = None - if self._connection.has_pipelining and self._play_context.pipelining and not C.DEFAULT_KEEP_REMOTE_FILES: + if self._connection.has_pipelining and self._play_context.pipelining and not C.DEFAULT_KEEP_REMOTE_FILES and module_style == 'new': in_data = module_data else: if remote_module_path: