From eb850bf81a99d1c5d695459ea25bfbf2fd9806e7 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Thu, 12 Mar 2015 10:22:06 -0500 Subject: [PATCH] Fix issue with unarchive disabling pipelining mode Was using persist_files=True when specifying the create paramater, which breaks pipelining. Switched to use delete_remote_tmp=False instead, which is the proper way to preserve the remove tmp dir when running other modules from the action plugin. --- lib/ansible/runner/action_plugins/unarchive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/action_plugins/unarchive.py b/lib/ansible/runner/action_plugins/unarchive.py index db94ac26e7d..312a2265c0f 100644 --- a/lib/ansible/runner/action_plugins/unarchive.py +++ b/lib/ansible/runner/action_plugins/unarchive.py @@ -62,7 +62,7 @@ class ActionModule(object): module_args_tmp = "" complex_args_tmp = dict(path=creates, get_md5=False, get_checksum=False) module_return = self.runner._execute_module(conn, tmp, 'stat', module_args_tmp, inject=inject, - complex_args=complex_args_tmp, persist_files=True) + complex_args=complex_args_tmp, delete_remote_tmp=False) stat = module_return.result.get('stat', None) if stat and stat.get('exists', False): return ReturnData(