# Copy module can't find file, but normal cp command works correctly

**URL:** <https://forum.ansible.com/t/copy-module-cant-find-file-but-normal-cp-command-works-correctly/25361>\
**Category:** Ansible Project\
**Created:** [August 29, 2017, 5:58pm UTC](https://forum.ansible.com/t/copy-module-cant-find-file-but-normal-cp-command-works-correctly/25361 "2017-08-29T17:58:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colin\_L](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@Colin\_L](https://forum.ansible.com/u/Colin_L)\
**Post date:** [August 29, 2017, 5:58pm UTC](https://forum.ansible.com/t/copy-module-cant-find-file-but-normal-cp-command-works-correctly/25361/1 "2017-08-29T17:58:20Z")

</div>

Hello,

I am trying to use the copy module to do a simple copy; but I am getting an error that has me puzzled:

Error that I get:

AnsibleFileNotFound: Could not find or access ‘/root/Downloads/example.desktop’

I have checked permissions, and that doesn’t seem to be an issue, so to do some testing I tried the exact same parameters for the standard cp command.

YML file:

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [August 29, 2017, 6:20pm UTC](https://forum.ansible.com/t/copy-module-cant-find-file-but-normal-cp-command-works-correctly/25361/2 "2017-08-29T18:20:43Z")

</div>

The `copy` module defaults from copying from the ansible controller to the remote target.

To do a copy with a remote src, use the `remote_src` option

---

<div class="post-metadata">

**Author:** ![Colin\_L](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@Colin\_L](https://forum.ansible.com/u/Colin_L)\
**Post date:** [August 29, 2017, 7:03pm UTC](https://forum.ansible.com/t/copy-module-cant-find-file-but-normal-cp-command-works-correctly/25361/3 "2017-08-29T19:03:15Z")

</div>

Thank you Matt.

It would appear that I didn’t RTFM.
