# galaxy alike server for private roles

**URL:** <https://forum.ansible.com/t/galaxy-alike-server-for-private-roles/20761>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [March 3, 2016, 4:10pm UTC](https://forum.ansible.com/t/galaxy-alike-server-for-private-roles/20761 "2016-03-03T16:10:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_Palacios](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@Javier\_Palacios](https://forum.ansible.com/u/Javier_Palacios)\
**Post date:** [March 3, 2016, 4:10pm UTC](https://forum.ansible.com/t/galaxy-alike-server-for-private-roles/20761/1 "2016-03-03T16:10:36Z")

</div>

As I wanted to be able to easily install roles that couldn’t be available through galaxy on single public github repos, and as I didn’t find any tool capable of that, I’ve written one myself. It is available at [https://github.com/javiplx/ansible-library/](https://github.com/javiplx/ansible-library/) and it is a minimal implementation of the galaxy API capable to install roles (this is, ‘ansible-galaxy install xxx’ works against it).

It will not work wit stock ansible but needs small patches both for 2.x ([https://github.com/ansible/ansible/pull/14779](https://github.com/ansible/ansible/pull/14779)) and 1.x ([https://github.com/ansible/ansible/pull/14780](https://github.com/ansible/ansible/pull/14780)), which I’ve just submitted as pull requests.

Javier Palacios

---

<div class="post-metadata">

**Author:** ![Steven\_Ringo](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Steven\_Ringo](https://forum.ansible.com/u/Steven_Ringo)\
**Post date:** [March 3, 2016, 8:52pm UTC](https://forum.ansible.com/t/galaxy-alike-server-for-private-roles/20761/2 "2016-03-03T20:52:26Z")

</div>

Hi Javier,

Galaxy should work with your own repos:

[https://opencredo.com/reusing-ansible-roles-with-private-git-repos-and-dependencies/](https://opencredo.com/reusing-ansible-roles-with-private-git-repos-and-dependencies/)

The secret sauce is in the requirements.yml file.

Steve

---

<div class="post-metadata">

**Author:** ![Javier\_Palacios](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@Javier\_Palacios](https://forum.ansible.com/u/Javier_Palacios)\
**Post date:** [March 3, 2016, 10:49pm UTC](https://forum.ansible.com/t/galaxy-alike-server-for-private-roles/20761/3 "2016-03-03T22:49:42Z")

</div>

I've seen that article, but requirements file will only work if I have one  
repo with one role on the top level. Currently I have one repo with  
multiple generic roles (not in toplevel) and also some roles included in  
the same repo than the code they deploy (also out of top level). The first  
one could be splited to match standards, but not the second. And I still  
have the issue that, as they are in private repositories, I need to arrange  
permission to clone/download.

Javier Palacios
