From cbea17e4c5791060867b4ee6707913ce8e63b40f Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 23 Jul 2012 20:46:35 -0400 Subject: [PATCH] Fix up async --- lib/ansible/runner/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index fba54973f9..adcb014fed 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -279,8 +279,10 @@ class Runner(object): # should drop module in same directory (module_path, is_new_style) = self._copy_module(conn, tmp, module_name, inject) + self._low_level_exec_command(conn, "chmod +x %s" % module_path, tmp) + return self._execute_module(conn, tmp, 'async_wrapper', module_args, - async_module=module_name, + async_module=module_path, async_jid=self.generated_jid, async_limit=self.background, inject=inject