# authorising when ansible pull from private git repo

**URL:** <https://forum.ansible.com/t/authorising-when-ansible-pull-from-private-git-repo/18405>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [June 4, 2015, 2:34pm UTC](https://forum.ansible.com/t/authorising-when-ansible-pull-from-private-git-repo/18405 "2015-06-04T14:34:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mirko\_Friedenhagen](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Mirko\_Friedenhagen](https://forum.ansible.com/u/Mirko_Friedenhagen)\
**Post date:** [June 4, 2015, 2:34pm UTC](https://forum.ansible.com/t/authorising-when-ansible-pull-from-private-git-repo/18405/1 "2015-06-04T14:34:56Z")

</div>

Hello Ye,

if I remember right, you may define different permissions for repository collaborators in Gitlab. At least within organizations this is possible.

Regards  
Mirko

---

<div class="post-metadata">

**Author:** ![Mirko\_Friedenhagen](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Mirko\_Friedenhagen](https://forum.ansible.com/u/Mirko_Friedenhagen)\
**Post date:** [June 9, 2015, 6:46pm UTC](https://forum.ansible.com/t/authorising-when-ansible-pull-from-private-git-repo/18405/2 "2015-06-09T18:46:10Z")

</div>

Hello Yena,

that depends how your git repository is set up. In GitHub (or GitLab)  
you may easily define read-only roles.  
When you use something like gitolite or plain git, it is possible to  
allow pull only for specific SSH keys as well.

However this is not really an Ansible question but depends on your git  
setup, so without further information the question is not easily  
answerable.  
Regards Mirko
