# Need small help

**URL:** <https://forum.ansible.com/t/need-small-help/30942>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [August 4, 2019, 5:27am UTC](https://forum.ansible.com/t/need-small-help/30942 "2019-08-04T05:27:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bubunia\_Patra](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@Bubunia\_Patra](https://forum.ansible.com/u/Bubunia_Patra)\
**Post date:** [August 4, 2019, 5:27am UTC](https://forum.ansible.com/t/need-small-help/30942/1 "2019-08-04T05:27:27Z")

</div>

Hi all,

I am having a issue with copy module copying from localhost to remote server. The problem is when the playbook runs the playbook works fine without any error. But the **contents**  **copy\_dir\_ex** is not visible in remote server. I am using ubuntu 14.04.I have provided 777 permission to destination directory. Still i am suspecting it is something pretty silly I am missing. Ansible version is 2.xx

When I run scp command on local hosts it works fine and the contents is available in remote server. Can anyone throw some light what i am missing?

scp -i \<private\_key\> ubuntu@remotehost:/tmp

The code is pretty simple as follows

```auto

---

-hosts: all
 gather_facts: false
 become: yes
  tasks:
  - name: Ansible copy directory to the remote server
    copy:
      src:/Users/mdtutorials2/Documents/Ansible/copy_dir_ex
      dest:/Users/mdtutorials2/Documents/Ansible/tmp

```

---

<div class="post-metadata">

**Author:** ![Sandip\_Bhattacharya](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Sandip\_Bhattacharya](https://forum.ansible.com/u/Sandip_Bhattacharya)\
**Post date:** [August 4, 2019, 9:02am UTC](https://forum.ansible.com/t/need-small-help/30942/2 "2019-08-04T09:02:03Z")

</div>

Check your “dest” parameter value. From your scp command example, I think you want this to be “/tmp”

- Sandip

---

<div class="post-metadata">

**Author:** ![Bubunia\_Patra](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@Bubunia\_Patra](https://forum.ansible.com/u/Bubunia_Patra)\
**Post date:** [August 4, 2019, 1:02pm UTC](https://forum.ansible.com/t/need-small-help/30942/3 "2019-08-04T13:02:15Z")

</div>

No even if the dest is /tmp the file is not visible in the remote server.

---

<div class="post-metadata">

**Author:** ![Sandip\_Bhattacharya](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@Sandip\_Bhattacharya](https://forum.ansible.com/u/Sandip_Bhattacharya)\
**Post date:** [August 5, 2019, 12:41am UTC](https://forum.ansible.com/t/need-small-help/30942/4 "2019-08-05T00:41:54Z")

</div>

> No even if the dest is /tmp the file is not visible in the remote server.

Run our command using “-v” or “—debug” to find out what is happening in that particular task. If you still cannot find out, share the output here.

- Sandip
