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:
Brian Coca 2015-11-12 09:37:37 -08:00
parent 206cc50bd9
commit 99f45f2e19

View file

@ -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: