Predefined Roles missing in Foreman

Problem:
Missing “Predefined Roles Available in Foreman” as listed in the Documentation.

https://docs.theforeman.org/nightly/Administering_Project/index-foreman-deb.html#Predefined_Roles_admin

Foreman and Proxy versions:
Version 3.5.1

Foreman and Proxy plugin versions:

Installed Packages

candlepin-4.2.3-1.el8.noarch
candlepin-selinux-4.2.3-1.el8.noarch
foreman-3.5.1-1.el8.noarch
foreman-cli-3.5.1-1.el8.noarch
foreman-debug-3.5.1-1.el8.noarch
foreman-dynflow-sidekiq-3.5.1-1.el8.noarch
foreman-installer-3.5.1-1.el8.noarch
foreman-installer-katello-3.5.1-1.el8.noarch
foreman-postgresql-3.5.1-1.el8.noarch
foreman-proxy-3.5.1-1.el8.noarch
foreman-release-3.5.1-1.el8.noarch
foreman-selinux-3.5.1-1.el8.noarch
foreman-service-3.5.1-1.el8.noarch
katello-4.7.0-1.el8.noarch
katello-ca-consumer-esol-cap01-pt.lxp.monash.edu-1.0-3.noarch
katello-certs-tools-2.9.0-1.el8.noarch
katello-client-bootstrap-1.7.9-1.el8.noarch
katello-common-4.7.0-1.el8.noarch
katello-debug-4.7.0-1.el8.noarch
katello-repos-4.7.0-1.el8.noarch
katello-selinux-4.0.2-2.el8.noarch
pulpcore-selinux-1.3.2-1.el8.x86_64
python39-pulp-ansible-0.15.0-1.el8.noarch
python39-pulp-certguard-1.5.5-1.el8.noarch
python39-pulp-cli-0.14.0-4.el8.noarch
python39-pulp-container-2.14.3-1.el8.noarch
python39-pulp-deb-2.20.0-1.el8.noarch
python39-pulp-file-1.11.1-1.el8.noarch
python39-pulp-python-3.7.2-2.el8.noarch
python39-pulp-rpm-3.18.5-1.el8.noarch
python39-pulpcore-3.21.4-1.el8.noarch
qpid-proton-c-0.37.0-1.el8.x86_64
rubygem-foreman-tasks-7.1.1-2.fm3_5.el8.noarch
rubygem-foreman_maintain-1.2.1-1.el8.noarch
rubygem-foreman_remote_execution-8.2.0-1.fm3_5.el8.noarch
rubygem-hammer_cli-3.5.0-1.el8.noarch
rubygem-hammer_cli_foreman-3.5.0-1.el8.noarch
rubygem-hammer_cli_foreman_remote_execution-0.2.2-1.fm3_0.el8.noarch
rubygem-hammer_cli_foreman_tasks-0.0.18-1.fm3_5.el8.noarch
rubygem-hammer_cli_katello-1.7.0-1.el8.noarch
rubygem-katello-4.7.0-1.el8.noarch
rubygem-pulp_ansible_client-0.15.0-1.el8.noarch
rubygem-pulp_certguard_client-1.5.5-1.el8.noarch
rubygem-pulp_container_client-2.14.2-1.el8.noarch
rubygem-pulp_deb_client-2.20.0-1.el8.noarch
rubygem-pulp_file_client-1.11.2-1.el8.noarch
rubygem-pulp_ostree_client-2.0.0-0.1.a1.el8.noarch
rubygem-pulp_python_client-3.7.3-1.el8.noarch
rubygem-pulp_rpm_client-3.18.7-1.el8.noarch
rubygem-pulpcore_client-3.21.2-1.el8.noarch
rubygem-qpid_proton-0.37.0-1.el8.x86_64
rubygem-smart_proxy_pulp-3.2.0-3.fm3_3.el8.noarch

Distribution and version:
/etc/redhat-release
Red Hat Enterprise Linux release 8.7 (Ootpa)

Other relevant data:
Current Roles.

hammer role list
---|--------------------------|--------
ID | NAME                     | BUILTIN
---|--------------------------|--------
11 | Auditor                  | no     
10 | Bookmarks manager        | no     
18 | Content Exporter         | no     
17 | Content Importer         | no     
1  | Default role             | yes    
7  | Edit hosts               | no     
5  | Edit partition tables    | no     
2  | Manager                  | no     
3  | Organization admin       | no     
16 | Register hosts           | no     
15 | Remote Execution Manager | no     
14 | Remote Execution User    | no     
9  | Site manager             | no     
4  | System admin             | no     
12 | Tasks Manager            | no     
13 | Tasks Reader             | no     
8  | Viewer                   | no     
6  | View hosts               | no     
---|--------------------------|--------

You do have them. You don’t see all roles listed in the docs as some are only created by plugins which you don’t have…

Which plugin do I need to get the “Ansible Tower Inventory Reader” role?
Also, how do I install that plugin?

It looks like the foreman_ansible plugin defines the role. foreman_ansible/register.rb at 356b1c46363709d0c2b3a9136fe51faaaf713cc9 · theforeman/foreman_ansible · GitHub

Try:

foreman-installer --enable-foreman-plugin-ansible