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
On Sun, Jul 19, 2015 at 11:48 PM, Adithya Khamithkar <[email protected]>
wrote:
> 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,
>
> --
> 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/198918cd-154b-4f5e-94bb-d94a64f829fb%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/198918cd-154b-4f5e-94bb-d94a64f829fb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAH%2BKTJ7cA_zKuVPweecDAoiOcN_X8n%3Dq_pY6neDBQhOB0qY91g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.