mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
remote user should rely on context, not direct var
this can cause issues with non-ssh connections and/or ansible_user
This commit is contained in:
parent
b2acba0d16
commit
58b6027a75
6 changed files with 6 additions and 6 deletions
|
@ -59,7 +59,7 @@ class ActionModule(ActionBase):
|
|||
result['msg'] = "src (or content) and dest are required"
|
||||
return result
|
||||
|
||||
remote_user = task_vars.get('ansible_ssh_user') or self._play_context.remote_user
|
||||
remote_user = self._play_context.remote_user
|
||||
if not tmp:
|
||||
tmp = self._make_tmp_path(remote_user)
|
||||
self._cleanup_remote_tmp = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue