diff options
Diffstat (limited to 'lib/ansible/plugins/action/patch.py')
-rw-r--r-- | lib/ansible/plugins/action/patch.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ansible/plugins/action/patch.py b/lib/ansible/plugins/action/patch.py index 4c5319ab1e..0e03c04c23 100644 --- a/lib/ansible/plugins/action/patch.py +++ b/lib/ansible/plugins/action/patch.py @@ -36,7 +36,6 @@ class ActionModule(ActionBase): src = self._task.args.get('src', None) remote_src = boolean(self._task.args.get('remote_src', 'no')) - remote_user = self._play_context.remote_user if src is None: result['failed'] = True @@ -57,13 +56,12 @@ class ActionModule(ActionBase): # create the remote tmp dir if needed, and put the source file there if tmp is None or "-tmp-" not in tmp: - tmp = self._make_tmp_path(remote_user) - self._cleanup_remote_tmp = True + tmp = self._make_tmp_path() tmp_src = self._connection._shell.join_path(tmp, os.path.basename(src)) self._transfer_file(src, tmp_src) - self._fixup_perms2((tmp, tmp_src), remote_user) + self._fixup_perms2((tmp, tmp_src) ) new_module_args = self._task.args.copy() new_module_args.update( |