diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2015-11-12 09:37:37 -0800 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2015-11-12 09:40:43 -0800 |
commit | 99f45f2e193c2b865ab965782ed0700f3814f617 (patch) | |
tree | 5ed27ec0bc1c952c1f874d21eabc29a0630cfddc | |
parent | 206cc50bd94bf43b5cee182815907300d892a0f0 (diff) | |
download | ansible-99f45f2e193c2b865ab965782ed0700f3814f617.tar.gz |
pass task args without filtering, copy module needs to explcitly support
remote_src or it will remove the src file
-rw-r--r-- | lib/ansible/plugins/action/copy.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ansible/plugins/action/copy.py b/lib/ansible/plugins/action/copy.py index 447cdda278..17c2286530 100644 --- a/lib/ansible/plugins/action/copy.py +++ b/lib/ansible/plugins/action/copy.py @@ -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: |