Ansible Roles

Problem:
I am not able to run Ansible Roles from Foreman UI.
Expected outcome:
The Ansible role should execute on the selected host
Foreman and Proxy versions:
1.23.1
Foreman and Proxy plugin versions:
1.23.1
Distribution and version:
[CentOS 7.7.1908]
Other relevant data:

I am getting the below error when trying to run Ansible role on any host :
Oops, we’re sorry but something went wrong ERF42-5962 [Foreman::Exception]: No template mapped to feature Run Ansible roles.
I am able to run ansible playbooks on the hosts. The problem is only with the running Ansible role.

For some reason, you don’t have the template correctly assigned to the feature. Go to Adminiter -> Remote Execution Features and search for ansible_run_host. Click on it’s name and make sure Job Template is set to "Ansible Roles - Ansible Default`.

If that’s set and it still does not work, go to Host -> Job Templates, find Ansible Roles - Ansible Default and double check it’s assigned to all Organizations and Locations you’re using.

Hope that helps

Thanks for the answer. yes it is working now after selecting the Ansible Roles - Ansible Default.