mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
pass task args without filtering, copy module needs to explcitly support
remote_src or it will remove the src file
This commit is contained in:
parent
206cc50bd9
commit
99f45f2e19
1 changed files with 1 additions and 3 deletions
|
@ -93,9 +93,7 @@ class ActionModule(ActionBase):
|
|||
return result
|
||||
|
||||
elif remote_src:
|
||||
new_module_args = self._task.args.copy()
|
||||
del new_module_args['remote_src']
|
||||
result.update(self._execute_module(module_name='copy', module_args=new_module_args, task_vars=task_vars, delete_remote_tmp=False))
|
||||
result.update(self._execute_module(module_name='copy', module_args=self._task.args, task_vars=task_vars, delete_remote_tmp=False))
|
||||
return result
|
||||
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue