# AAP2.5 How do you create controller\_roles

**URL:** <https://forum.ansible.com/t/aap2-5-how-do-you-create-controller-roles/40148>\
**Category:** Get Help\
**Tags:** aap\
**Created:** [February 10, 2025, 10:21am UTC](https://forum.ansible.com/t/aap2-5-how-do-you-create-controller-roles/40148 "2025-02-10T10:21:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![viktor.romhanyi](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/viktor.romhanyi/32/5182_2.png) [@viktor.romhanyi](https://forum.ansible.com/u/viktor.romhanyi)\
**Post date:** [February 10, 2025, 10:21am UTC](https://forum.ansible.com/t/aap2-5-how-do-you-create-controller-roles/40148/1 "2025-02-10T10:21:55Z")

</div>

Can someone please help us and tell me how it is possible to create roles in the 2.5 Controller/Automation Execution?

We tried the approach of using filetree\_read and then dispatch.  
infra.aap\_configuration.dispatch seems to be missing the possibility to create roles.  
The old role infra.controller\_configuration.dispatch doesnt work with 2.5 for us.

We try to do this as configuration as code, so we dont want to have to click in the UI. (There it works.)

---

<div class="post-metadata">

**Author:** ![wayt](https://avatars.discourse-cdn.com/v4/letter/w/3be4f8/32.png) [@wayt](https://forum.ansible.com/u/wayt)\
**Post date:** [February 17, 2025, 4:33pm UTC](https://forum.ansible.com/t/aap2-5-how-do-you-create-controller-roles/40148/2 "2025-02-17T16:33:02Z")

</div>

What about `awx.awx.role` and `awx.awx.role_definition` (`ansible.controller` =~ `awx.awx`)? This assumes you’re talking about that type of roles (RBAC). Is this part of a `postinstall` process?

---

<div class="post-metadata">

**Author:** ![viktor.romhanyi](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/viktor.romhanyi/32/5182_2.png) [@viktor.romhanyi](https://forum.ansible.com/u/viktor.romhanyi)\
**Post date:** [February 21, 2025, 1:14pm UTC](https://forum.ansible.com/t/aap2-5-how-do-you-create-controller-roles/40148/3 "2025-02-21T13:14:36Z")

</div>

We didnt find a way to use dispatch, but by using “controller\_configuration.roles” its possible to create them in 2.5 and for now thats sufficient for us.
