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

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,

Use the version option to specify a particular branch, tag or commit id. See http://docs.ansible.com/ansible/git_module.html