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> <file> ubuntu@remotehost:/tmp 

The code is pretty simple as follows

---

-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


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/35d22598-d96c-4f05-9e03-24dbca0daade%40googlegroups.com.

Reply via email to