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 ?