title: Could not find or access a file that is in the local directory
body: <p>I have got an error in my project, when I am trying to copy from local directory to remote one</p>
  
  <p>error message:</p>
  
  <pre><code>fatal: [xxx]: FAILED! =&gt; {
  "changed": false, "msg": "could not find 
  src=/Users/xxx/Desktop/Docker/The_Task/./roles/docker_registry/templates,
  Could not find or access 
  '/Users/xxx/Desktop/Docker/The_Task/./roles/docker_registry/templates' 
  on the Ansible Controller.\n
  If you are using a module and expect the file to exist on the remote, see the remote_src option"
  }
  </code></pre>
  
  <p>playbook.yml</p>
  
  <pre><code>- name: Copying required files
    template:
      src: ./roles/docker_registry/templates
      dest: /tmp/docker_registry
  </code></pre>
  
  <p>if i do:</p>
  
  <pre><code>cd /Users/xxx/Desktop/Docker/The_Task/./roles/docker_registry/templates
  </code></pre>
  
  <p>it changes directory to the directory i want to ... the error seems to be from ansible side. ( it doesnt work with absolute path eighter )</p>
  
  <p>if I use the default copy module, then it works pretty much fine</p>
  
  <pre><code>- name: copy files [local -&gt; remote]
    copy:
      src: ./roles/docker_registry/templates
      dest: /tmp/docker_registry
  </code></pre>
  
  <p>any idea what should i do to make it work ? [ its copying from LOCAL -> REMOTE ]</p>
  
  <hr>
  
  <h2>But still i can not copy the whole dir into the remote machine</h2>