# Question about awx and nested roles

**URL:** <https://forum.ansible.com/t/question-about-awx-and-nested-roles/35479>\
**Category:** AWX Project\
**Tags:** awx, galaxy-ng\
**Created:** [July 8, 2021, 3:11pm UTC](https://forum.ansible.com/t/question-about-awx-and-nested-roles/35479 "2021-07-08T15:11:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joao\_Carlos\_Heringer](https://avatars.discourse-cdn.com/v4/letter/j/c37758/32.png) [@Joao\_Carlos\_Heringer](https://forum.ansible.com/u/Joao_Carlos_Heringer)\
**Post date:** [July 8, 2021, 3:11pm UTC](https://forum.ansible.com/t/question-about-awx-and-nested-roles/35479/1 "2021-07-08T15:11:16Z")

</div>

Hi, Im learning ansible and awx, and i have a doubt about a scenario:

I created a two roles ‘up\_to\_date’ and ‘ssh\_hardened’. And after that a role ‘base\_server’, which (initially) just imports those two other roles. All the roles are on separate internal git repos. The first two roles are listed on base\_server’s meta/requirements.yml.

Now, i created a project with a playbook to run the base\_server role and other stuff on some servers. The project has a roles/requirements.yml with just the base\_server role.

The playbook and all my tests work fine locally, i just run ansible-galaxy install -r project/roles/requirements.yml , and the base\_role and all its requirements (up\_to\_date and ssh\_hardened) are installed, and i can run the playbook.

When the project is imported to awx(17.1.0), the sync runs OK (the prepare\_project.yml stuff), but when I try to create and run a template with the playbook, only the base\_server role is installed, and the job fails because it doesnt find ‘up\_to\_date’ and ‘ssh\_hardened’ roles.

My questions are: Should this configuration work on awx ? Is this a good practice, or i should avoid these “nested” roles and skip the ‘base\_server’ role, using the fist two roles directly in the playbook ?
