Ansible : Git module clone of repository while re-run is throwing exception
<p>I am using ansible-playbook to setup server, which is cloning the repo from github.
While I am re-running the play-book, I am getting the exception as <code>msg: fatal: destination path '/webapps/........' already exists and is not an empty directory.</code></p>

<pre><code>TASK: [web | Setup the Git repo] **********************************************
failed: [192.168.1.96] =&gt; {"cmd": "/usr/bin/git clone --origin origin --branch master https://github.com/....../......git /webapps/....../...../....", "failed": true, "rc": 128}
stderr: fatal: destination path '/webapps/..../..../....' already exists and is not an empty directory.

msg: fatal: destination path '/webapps/..../..../....' already exists and is not an empty directory.

FATAL: all hosts have already failed -- aborting
</code></pre>

<p>PLAYBOOK</p>

<pre><code>- name: Setup the Git repo
  git: repo={{ git_repo }}
       version="{{ git_branch }}"
       dest={{ project_path }}
       accept_hostkey=yes
       force=yes
  when: setup_git_repo is defined and setup_git_repo
  tags: git

- name: Delete all .pyc files
  command: find . -name '*.pyc' -delete
  args:
    chdir: "{{ project_path }}"
  tags: git
</code></pre>

<p>How do I skip this step (or) over-write the files, if files are already cloned and exists in server.?.</p>