How to deploy a particular git branch and commit id using ansible git module?

3,953 views
Skip to first unread message

Adithya Khamithkar

unread,
Jul 19, 2015, 11:48:06 PM7/19/15
to ansible...@googlegroups.com
Hi,
I would need some help in how to deploy a particular git branch and commit id using ansible git module,

- name: Deploy
  git
: repo={{project_repo}} dest={{project_doc_root}} accept_hostkey=yes

This is the command i am using which i would like to extend.

Thanks,

Chris Church

unread,
Jul 21, 2015, 2:56:48 PM7/21/15
to ansible...@googlegroups.com
Use the version option to specify a particular branch, tag or commit id.  See http://docs.ansible.com/ansible/git_module.html

- git: repo={{project_repo}} dest={{project_doc_root}} version={{project_version}} accept_hostkeys=yes



--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/198918cd-154b-4f5e-94bb-d94a64f829fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages