Foreman is not finding ansible roles

Foreman is not finding ansible roles. All the configurations are done. After adding hosts, I navigated to Configure >Ansible > Roles > Import from “Hostname” and its getting errored out. Error is No changes in roles detected on hostname.
Expected outcome:
Roles should be listed
Here are the logs from foreman-proxy
2021-07-28T14:12:00 [D] Rack::Handler::WEBrick is invoked.
2021-07-28T14:12:00 8e767197 [I] Started GET /ansible/roles
2021-07-28T14:12:00 8e767197 [I] Finished GET /ansible/roles with 200 (0.75 ms)
2021-07-28T14:12:00 [D] close:

Any help would be appreciated

Where on the filesystem you installed roles to? I believe we look at /etc/ansible/ansible.cfg and scan both roles_path and collections_path directories we find there. If we don’t find this in the ansible.cfg, we default to /etc/ansible/roles:/usr/share/ansible/roles and /etc/ansible/collections:/usr/share/ansible/collections

If you install things using ansible-galaxy, note that it may install it to your home directory.