Discussion:
[ansible-project] How to deploy a particular git branch and commit id using ansible git module?
Adithya Khamithkar
2015-07-20 03:48:06 UTC
Permalink
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 ansible-project+***@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.
Chris Church
2015-07-21 18:56:23 UTC
Permalink
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
Post by Adithya Khamithkar
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
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 ansible-project+***@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/CAH%2BKTJ7cA_zKuVPweecDAoiOcN_X8n%3Dq_pY6neDBQhOB0qY91g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...