i'm new to ansible and I'm doing a simple test deployment.
Everything works fine. My problem is related to git module deploying the .git directory to server. I don't want this.
My playbook is simple
---
- hosts: rffa
remote_user: rffa
tasks:
- name: git deploy ansible test
git: repo=g...@bitbucket.org:rffaguiar/capistrano-test.git
I just have an index.html for tests and other files that were ignored by .gitignore.
However the entire .git folder is deployed to 'rffa' hosts.
Do git module have some argument to prevent this?
I know I can delete the .git folder after deploy task. But can I do this before/during deploy?