mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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:
@@ -36,7 +36,7 @@ class ActionModule(ActionBase):
|
||||
|
||||
src = self._task.args.get('src', None)
|
||||
remote_src = boolean(self._task.args.get('remote_src', 'no'))
|
||||
remote_user = task_vars.get('ansible_ssh_user') or self._play_context.remote_user
|
||||
remote_user = self._play_context.remote_user
|
||||
|
||||
if src is None:
|
||||
result['failed'] = True
|
||||
|
||||
Reference in New Issue
Block a user