From 017e7f24ed5a58cb0f3b5d66dd7e72a065c274c3 Mon Sep 17 00:00:00 2001 From: bennojoy Date: Wed, 5 Jun 2013 19:59:39 +0530 Subject: [PATCH] bug fix for #3077, environment settings for script --- lib/ansible/runner/action_plugins/script.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/runner/action_plugins/script.py b/lib/ansible/runner/action_plugins/script.py index 84c0ab015bf..dba9ca5a74a 100644 --- a/lib/ansible/runner/action_plugins/script.py +++ b/lib/ansible/runner/action_plugins/script.py @@ -61,7 +61,8 @@ class ActionModule(object): prepcmd = 'chmod +x %s' % tmp_src # add preparation steps to one ssh roundtrip executing the script - module_args = prepcmd + '; ' + tmp_src + ' ' + args + env_string = self.runner._compute_environment_string(inject) + module_args = prepcmd + '; ' + env_string + tmp_src + ' ' + args handler = utils.plugins.action_loader.get('raw', self.runner) result = handler.run(conn, tmp, 'raw', module_args, inject)