I have an AWX job template configured to use a specific instance group (e.g., production-instances
). In the playbook, I have set hosts: localhost
because I assumed the execution would happen on the assigned instance group nodes. However, when I check the execution logs, the playbook is running on the controller node instead of the expected executor nodes from the instance group.
What I Have Tried:
- Verified that the job template is correctly assigned to the instance group.
- Checked the execution logs, and they indicate that the tasks are running on the controller node rather than the instance group’s executor nodes.
- Ensured that the instance group has active executor nodes available for job execution.
Questions:
- How can I ensure that the playbook actually runs on the executor nodes of the instance group and not on the controller?
- Do I need to explicitly define an inventory that includes hosts from the instance group?
- Should I be using a different host pattern instead of
localhost
in the playbook to properly target the instance group? - Is there any additional configuration required in AWX to enforce execution on the assigned instance group?
Would appreciate any insights or best practices to ensure that AWX runs the playbook on the correct execution nodes. Thanks!