ERROR: Unrecognised option '--no-enable-foreman'

Hi,
I would like to enable ansible in foreman. When i run the command as state in the foreman manual (foreman-installer --no-enable-foreman --enable-foreman-proxy-plugin-ansible
) I get this error in foreman proxy:

ERROR: Unrecognised option ‘–no-enable-foreman’

Anyone know how I can get around this? I am using foreman proxy v3.10

Thanks.

Why are you trying to pass --no-enable-foreman ? I can’t see anywhere in the documentation that it says to do that.

Hi @jeremylenz ,

This is the official doc that I was referring to:
" Configuring Foreman to use Ansible"

"On all Smart Proxy servers that you want to use to run Ansible roles on hosts, enable the Ansible plug-in:

foreman-installer --no-enable-foreman \

–enable-foreman-proxy-plugin-ansible"

That documentation is for Foreman v2.5. The documentation for 3.10 doesn’t have that: Configuring hosts using Ansible

I’d try it without it.

Thanks @jeremylenz .

The command went through but I am getting one ERROR from the log. Looks like the newly added Discover feature is giving an error?

2025-01-22 16:50:27 [ERROR ] [configure] Proxy xxxxxxxxxxxxxx.com has failed to load one or more features (Discovery), check /var/log/foreman-proxy/proxy.log for configuration errors
2025-01-22 16:50:27 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[xxxxxxxxxxx.com]/features: change from [“Ansible”, “Container_Gateway”, “DHCP”, “DNS”, “Dynflow”, “Logs”, “Pulpcore”, “Registration”, “Script”, “TFTP”, “Templates”] to [“Ansible”, “Container_Gateway”, “DHCP”, “DNS”, “Discovery”, “Dynflow”, “Logs”, “Pulpcore”, “Registration”, “Script”, “TFTP”, “Templates”] failed: Proxy xxxxxxxxxxxxxxxx.com has failed to load one or more features (Discovery), check /var/log/foreman-proxy/proxy.log for configuration errors

If you don’t need Discovery, you could try disabling it by adding --no-enable-foreman-proxy-plugin-discovery to the command and running it again.

(See foreman-installer --full-help for all the options)