title: Ansible playbook to copy files from git repo to remote server
body: <p>I am trying to copy a few files from a git repository to a remote server. since the changes will be made often to these files, the files are placed in git, and from git, I am trying to copy it to the remote servers.</p>
  <p>I am trying something like this, but the git repo I am accessing is a protected one and I have the creds. I would like to know how do I pass on the username and password here. How do I achieve it?</p>
  <pre class="lang-yaml prettyprint-override"><code>    - name: Clone git to a local server
          git:
            repo: https://github.com/blah/blah.git
            dest: /my/laptop/var/tmp/
  </code></pre>
  <p>Once I have those files in the controller server, from there I can copy files to all the remote hosts with the copy module.</p>