No Ansible options in foreman UI

Problem:
On my foreman master I ran the following:

foreman-installer --enable-foreman-plugin-ansible
–enable-foreman-proxy-plugin-ansible

On my proxies I ran the following:

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

Expected outcome:

Per the docs at Configuring hosts by using Ansible

I should be able to:

  1. In the Foreman web UI, navigate to Configure > Ansible > Roles.

Unfortunately I don’t see an Ansible option under configure. How do I fix this? I am following the steps in the documentation and I get nothing. What am I missing here?

Foreman and Proxy versions:

3.11

That should have done the trick. Has it finished successfully? To get more details, could you run the following commands and post the output here?

foreman-installer --full-help | grep ansible
rpm -qa | grep ansible

Thank you for the response. I failed to mention that I am running Ubuntu 20.04 on the master and proxies. Here is equivalent output:

~# foreman-installer --full-help | grep ansible
–[no-]enable-foreman-cli-ansible Enable ‘foreman_cli_ansible’ puppet module (default: false)
–[no-]enable-foreman-plugin-ansible Enable ‘foreman_plugin_ansible’ puppet module (default: true)
–[no-]enable-foreman-proxy-plugin-ansible Enable ‘foreman_proxy_plugin_ansible’ puppet module (default: true)
= Module foreman_proxy_plugin_ansible:
–foreman-proxy-plugin-ansible-ansible-dir Ansible directory to search for available roles (current: “/usr/share/foreman-proxy”)
–reset-foreman-proxy-plugin-ansible-ansible-dir Reset ansible_dir to the default value (“/usr/share/foreman-proxy”)
–foreman-proxy-plugin-ansible-callback The callback plugin to configure in ansible.cfg (current: “theforeman.foreman.foreman”)
–reset-foreman-proxy-plugin-ansible-callback Reset callback to the default value (“theforeman.foreman.foreman”)
–foreman-proxy-plugin-ansible-collections-paths Paths where to look for ansible collections (current: [“/etc/ansible/collections”, “/usr/share/ansible/collections”])
–reset-foreman-proxy-plugin-ansible-collections-paths Reset collections_paths to the default value ([“/etc/ansible/collections”, “/usr/share/ansible/collections”])
–foreman-proxy-plugin-ansible-enabled Enables/disables the ansible plugin (current: true)
–reset-foreman-proxy-plugin-ansible-enabled Reset enabled to the default value (true)
–foreman-proxy-plugin-ansible-host-key-checking Whether to ignore errors when a host is reinstalled
–reset-foreman-proxy-plugin-ansible-host-key-checking Reset host_key_checking to the default value (false)
–foreman-proxy-plugin-ansible-install-runner If true, installs ansible-runner package to support running ansible by ansible-runner (current: true)
–reset-foreman-proxy-plugin-ansible-install-runner Reset install_runner to the default value (true)
–foreman-proxy-plugin-ansible-listen-on Proxy feature listens on https, http, or both (current: “https”)
–reset-foreman-proxy-plugin-ansible-listen-on Reset listen_on to the default value (“https”)
–foreman-proxy-plugin-ansible-roles-path Paths where we look for ansible roles. (current: [“/etc/ansible/roles”, “/usr/share/ansible/roles”])
–reset-foreman-proxy-plugin-ansible-roles-path Reset roles_path to the default value ([“/etc/ansible/roles”, “/usr/share/ansible/roles”])
–foreman-proxy-plugin-ansible-runner-package-name The name of the ansible-runner package to install (current: “python3-ansible-runner”)
–reset-foreman-proxy-plugin-ansible-runner-package-name Reset runner_package_name to the default value (“python3-ansible-runner”)
–foreman-proxy-plugin-ansible-ssh-args The ssh_args parameter in ansible.cfg under [ssh_connection] (current: “-o ProxyCommand=none -C -o ControlMaster=auto -o ControlPersist=60s -o ServerAliveInterval=15 -o ServerAliveCountMax=3”)
–reset-foreman-proxy-plugin-ansible-ssh-args Reset ssh_args to the default value (“-o ProxyCommand=none -C -o ControlMaster=auto -o ControlPersist=60s -o ServerAliveInterval=15 -o ServerAliveCountMax=3”)
–foreman-proxy-plugin-ansible-working-dir A directory where the playbooks will be generated.
–reset-foreman-proxy-plugin-ansible-working-dir Reset working_dir to the default value (“/tmp”)
–foreman-proxy-plugin-openscap-ansible-module Ensure the Ansible module (current: false)
–reset-foreman-proxy-plugin-openscap-ansible-module Reset ansible_module to the default value (false)
–foreman-proxy-plugin-openscap-ansible-module-ensure The state of the Ansible module to ensure (current: “present”)
–reset-foreman-proxy-plugin-openscap-ansible-module-ensure Reset ansible_module_ensure to the default value (“present”)

~# apt list --installed | grep ansible

ansible-collection-theforeman-foreman/plugins,plugins,now 4.0.0-1 all [installed]
ansible/focal,focal,focal,focal,now 2.9.6+dfsg-1 all [installed,automatic]
python3-ansible-runner/focal,focal,now 2.2.1-1~tfm+1 all [installed]
ruby-foreman-ansible/plugins,plugins,now 14.0.0-1 all [installed]
ruby-smart-proxy-ansible/plugins,plugins,now 3.5.5-1 all [installed]

That looks sensible, all the bits should be there. Maybe a wild guess, but would restarting httpd (or however it is called on deb-based distributions) change anything?

apache2, but you probably mean foreman as that’s the process running Rails :slight_smile:

A teammate upgraded foreman to 3.12 since my last post which included a reboot of the server and now the Ansible tab is showing up. We can mark this one as resolved. Thanks!