diff --git a/lib/ansible/plugins/action/script.py b/lib/ansible/plugins/action/script.py index 2392851110d..e157ddce06e 100644 --- a/lib/ansible/plugins/action/script.py +++ b/lib/ansible/plugins/action/script.py @@ -83,8 +83,8 @@ class ActionModule(ActionBase): # add preparation steps to one ssh roundtrip executing the script env_string = self._compute_environment_string() script_cmd = ' '.join([env_string, tmp_src, args]) - - result = self._low_level_execute_command(cmd=script_cmd, tmp=None, sudoable=sudoable) + + result = self._low_level_execute_command(cmd=script_cmd, tmp=None, sudoable=True) # clean up after if tmp and "tmp" in tmp and not C.DEFAULT_KEEP_REMOTE_FILES: