# AAP and galaxy roles best practices

**URL:** <https://forum.ansible.com/t/aap-and-galaxy-roles-best-practices/40764>\
**Category:** Get Help\
**Tags:** rhel, aap, awx, galaxy-ng\
**Created:** [March 4, 2025, 2:12am UTC](https://forum.ansible.com/t/aap-and-galaxy-roles-best-practices/40764 "2025-03-04T02:12:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmillsapbooth](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@jmillsapbooth](https://forum.ansible.com/u/jmillsapbooth)\
**Post date:** [March 4, 2025, 2:12am UTC](https://forum.ansible.com/t/aap-and-galaxy-roles-best-practices/40764/1 "2025-03-04T02:12:32Z")

</div>

I am migrating my config management stack from puppet/hiera/foreman to AAP. I am getting the hang of it, but I am confused about how I should be using galaxy roles. I am using AAP 4.5.13, and RHEL satellite for my inventory

For instance:  
I have a bunch of hosted servers. Some need databases, some need nginx, some need apache, etc… I would like to use group, and host\_vars so that I don’t have dozens of playbooks laying around. So far, I have not been able to get the AAP template run to pick up the host\_vars… Just don’t want to paint myself into a corner…

## Sample playbook:

- hosts: all(limited in the AAP template)  
gather\_facts: true  
become: true  
vars\_files:

The bertvv.bind role is listed in requirements.yml and that seems to work fine. The “dns\_server” role is something I initialized, and put all of the bertvv.bind variables in a group\_vars yaml that matches the name of the foreman group from satellite.

Sorry for the ignorance, but I am not finding much out there. I also may not be using the correct terminology!

thanks in advance.
