Hi Renan,
As Nathan mentioned, setting the environment variable solved the issue for
me.
- name: git deploy ansible test
git: [email protected]:rffaguiar/capistrano-test.git
dest=/var/www/lab.rffaguiar.com/public_html
environment:
GIT_DIR: /var/www/lab.rffaguiar.com/.git
<http://lab.rffaguiar.com/public_html>
On Tuesday, June 10, 2014 at 7:31:41 AM UTC+10, Renan Aguiar wrote:
>
> 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: [email protected]:rffaguiar/capistrano-test.git
> dest=/var/www/lab.rffaguiar.com/public_html
>
> 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?
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/4bbb8530-cfb6-4794-8ab8-f4a74bb30a56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.