# Ansible Galaxy - requirements.yml and a single github repo with multiple roles

**URL:** <https://forum.ansible.com/t/ansible-galaxy-requirements-yml-and-a-single-github-repo-with-multiple-roles/20732>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [March 1, 2016, 7:44pm UTC](https://forum.ansible.com/t/ansible-galaxy-requirements-yml-and-a-single-github-repo-with-multiple-roles/20732 "2016-03-01T19:44:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarlindo](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sarlindo](https://forum.ansible.com/u/sarlindo)\
**Post date:** [March 1, 2016, 7:44pm UTC](https://forum.ansible.com/t/ansible-galaxy-requirements-yml-and-a-single-github-repo-with-multiple-roles/20732/1 "2016-03-01T19:44:29Z")

</div>

In terms of github repos for ansible roles. Does galaxy supports having multiple “roles” in ONE github repo?

For example, let’s assume I have the following github repo [https://github.com/sarlindo/ansiblemidddlewarerepo](https://github.com/jeffwidman/ansiblemidddlewarerepo) and in this github repo I have a bunch of ansible “roles” in separate folders such as “mysql”, “nginx” etc…

Can galaxy retrieve just the particular role I am interested in from this “shared” repo or will it have to download the WHOLE repo with ALL the roles? OR must I have EACH role in a separate github repo?

---

<div class="post-metadata">

**Author:** ![daemenseth](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/daemenseth/32/677_2.png) [@daemenseth](https://forum.ansible.com/u/daemenseth)\
**Post date:** [March 22, 2019, 9:32pm UTC](https://forum.ansible.com/t/ansible-galaxy-requirements-yml-and-a-single-github-repo-with-multiple-roles/20732/2 "2019-03-22T21:32:45Z")

</div>

Did you find a solution forum this?  
Is IT posible tot user one git repo for multiple roles and use the ansible galaxy command OR requirements.yml

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [March 22, 2019, 9:34pm UTC](https://forum.ansible.com/t/ansible-galaxy-requirements-yml-and-a-single-github-repo-with-multiple-roles/20732/3 "2019-03-22T21:34:42Z")

</div>

yes, look at [https://galaxy.ansible.com/docs/using/installing.html](https://galaxy.ansible.com/docs/using/installing.html) and [https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_best\_practices.html#directory-layout](https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html#directory-layout)

---

<div class="post-metadata">

**Author:** ![daemenseth](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/daemenseth/32/677_2.png) [@daemenseth](https://forum.ansible.com/u/daemenseth)\
**Post date:** [March 22, 2019, 10:07pm UTC](https://forum.ansible.com/t/ansible-galaxy-requirements-yml-and-a-single-github-repo-with-multiple-roles/20732/4 "2019-03-22T22:07:48Z")

</div>

Ok then I need mazer for multiple roles repositories. Buy the requirements.yml in roles directory use automtically ansible-galaxy command.
