# Getting error while copying file from local mechine to Remote.

**URL:** <https://forum.ansible.com/t/getting-error-while-copying-file-from-local-mechine-to-remote/19486>\
**Category:** Ansible Developer\
**Created:** [October 12, 2015, 6:49am UTC](https://forum.ansible.com/t/getting-error-while-copying-file-from-local-mechine-to-remote/19486 "2015-10-12T06:49:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suneel\_kumar](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@suneel\_kumar](https://forum.ansible.com/u/suneel_kumar)\
**Post date:** [October 12, 2015, 6:49am UTC](https://forum.ansible.com/t/getting-error-while-copying-file-from-local-mechine-to-remote/19486/1 "2015-10-12T06:49:09Z")

</div>

Hi I am new to Ansible.

I am trying to copy file from my local machine to remote using ansible i am getting the fallowing error.

172.22.1.75 | FAILED \>\> {  
“failed”: true,  
“msg”: “src (or content) and dest are required”  
}

**I am using the below command :-**

ansible webserver -m copy -a “/etc/ansible/test1 dest=/root/suneel/test1”

Thanks  
Suneel

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [October 12, 2015, 12:57pm UTC](https://forum.ansible.com/t/getting-error-while-copying-file-from-local-mechine-to-remote/19486/2 "2015-10-12T12:57:38Z")

</div>

Hi Suneel,

Probably a question for Ansible Project mailing list, but I think you just need to check that you have supplied all the parameters that the module requires.

ansible webserver -m copy -a “ **src=** /etc/ansible/test1 dest=/root/suneel/test1”

the copy module wants a src and a dest parameter - see [http://docs.ansible.com/ansible/copy\_module.html](http://docs.ansible.com/ansible/copy_module.html)

Hope this helps,

Jon
