# including a role from different project

**URL:** <https://forum.ansible.com/t/including-a-role-from-different-project/29297>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [December 19, 2018, 9:14am UTC](https://forum.ansible.com/t/including-a-role-from-different-project/29297 "2018-12-19T09:14:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ansible\_Madness1](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@Ansible\_Madness1](https://forum.ansible.com/u/Ansible_Madness1)\
**Post date:** [December 19, 2018, 9:14am UTC](https://forum.ansible.com/t/including-a-role-from-different-project/29297/1 "2018-12-19T09:14:48Z")

</div>

in my AWX i have 2x ansible Git projects (internal SCM)

Till now i have been doing something like this on my local ansible host (no awx)

project1/role/abc/tasks/main.yml

project2/roles/edf/tasks/main.yml

Whilst in project1 directory and running a standard ansible-playbook with role “abc”, I am able to include a role from project2 using the relative path, example:

- include\_role:  
name: …/project2/roles/edf

Works fine, however this is broken when i move to awx and it cant find the roles within the awx structure.

I read something about a requirements.yml, will this apply here? If so do i reference a project in awx (how) or directly the git scm of project2?

Thanks for any insight.

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [December 19, 2018, 3:01pm UTC](https://forum.ansible.com/t/including-a-role-from-different-project/29297/2 "2018-12-19T15:01:39Z")

</div>

In AWX we isolate projects from one another (because they could have different permission levels). We have some plans around this over the next 6 months or so but you may considering pulling roles using a requirements file: [https://docs.ansible.com/ansible/latest/reference\_appendices/galaxy.html#installing-multiple-roles-from-a-file](https://docs.ansible.com/ansible/latest/reference_appendices/galaxy.html#installing-multiple-roles-from-a-file)

---

<div class="post-metadata">

**Author:** ![Ansible\_Madness](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Ansible\_Madness](https://forum.ansible.com/u/Ansible_Madness)\
**Post date:** [January 3, 2019, 11:25am UTC](https://forum.ansible.com/t/including-a-role-from-different-project/29297/3 "2019-01-03T11:25:04Z")

</div>

Many thanks - after some modifications and understanding the concept of galaxy a bit better i got this working.

---

<div class="post-metadata">

**Author:** ![Pedro\_Santos](https://avatars.discourse-cdn.com/v4/letter/p/ee7513/32.png) [@Pedro\_Santos](https://forum.ansible.com/u/Pedro_Santos)\
**Post date:** [May 19, 2021, 2:34pm UTC](https://forum.ansible.com/t/including-a-role-from-different-project/29297/4 "2021-05-19T14:34:57Z")

</div>

Hi, could you kindly how you managed to pull the roles from the other project into yours ?;

I’m facing the same issue reading your solution would be trully appreciated (and I’m I have been working with AWX for like 24 hours now).

Best,
