# Using Ansible Galaxy roles in shared project

**URL:** <https://forum.ansible.com/t/using-ansible-galaxy-roles-in-shared-project/14825>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [March 21, 2014, 8:04pm UTC](https://forum.ansible.com/t/using-ansible-galaxy-roles-in-shared-project/14825 "2014-03-21T20:04:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaunak\_Kashyap](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Shaunak\_Kashyap](https://forum.ansible.com/u/Shaunak_Kashyap)\
**Post date:** [March 21, 2014, 8:04pm UTC](https://forum.ansible.com/t/using-ansible-galaxy-roles-in-shared-project/14825/1 "2014-03-21T20:04:31Z")

</div>

I’m very new to Ansible and just discovered Ansible Galaxy as a way to reuse roles. I’m trying to figure out how best to use it within a project I’m sharing with other team members.

Specifically, If I use ansible-galaxy install to install a role, it installs it into /usr/local/etc/ansible/roles. My project, however, has a roles directory as well, which I commit to GitHub repository so I can share the project with other team members. What is the best way to use a ansible-galaxy-installed role from within my project and share it with the rest of the team as part of our project?

One way I could think of is to copy the files from under /usr/local/etc/ansible/roles into my project’s roles directory and then commit them to the project’s repo so the rest of the team gets them as well. Is this a good way or is there a better way?

Thanks,

Shaunak

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [March 21, 2014, 8:57pm UTC](https://forum.ansible.com/t/using-ansible-galaxy-roles-in-shared-project/14825/2 "2014-03-21T20:57:07Z")

</div>

ansible-galaxy as a -p/–roles-path flag where you can specify the path of where it installs the files to. You can also configure then in ansible.cfg as roles\_path.

So that may be of some interest to you.

As far as storing roles with your project, I think it is acceptable to put it in your projects repo. That is what we do.
