title: How to clone from a local git repository to a vm using ansible
body: <p>I have a local git repository which I am trying to clone onto a vagrant machine. I'm trying to use ansible's "git" module to do this, I have the following task,</p>
  
  <pre><code>- name: Clone repository
    git: repo=git://../.git dest=/home/vagrant/source accept_hostkey=True
  </code></pre>
  
  <p>When I run this task I receive the error, </p>
  
  <pre><code>failed: [webserver] =&gt; {"cmd": "/usr/bin/git ls-remote git://../.git -h refs/heads/HEAD", "failed": true, "rc": 128}
  stderr: fatal: unable to connect to ..:
  ..[0: 42.185.229.96]: errno=Connection timed out
  
  msg: fatal: unable to connect to ..:
  ..[0: 42.185.229.96]: errno=Connection timed out
  
  FATAL: all hosts have already failed -- aborting
  </code></pre>
  
  <p>It looks like it's trying to find the repository on my VM rather than on my local machine? How to I clone from my local repo?</p>