When I setup Foreman (Satellite) server, I didn’t have Ansible support enabled. Here is how it can be done later on.
If we only need Ansible support, it’s sufficient to just run this command:
# foreman-installer \
--enable-foreman-plugin-ansible \
--enable-foreman-proxy-plugin-ansible
Just a note for myself, I also need Remote Execution enabled if I want to run Ansible playbooks as Job Templates.
# foreman-installer \
--enable-foreman-plugin-remote-execution \
--enable-foreman-proxy-plugin-remote-execution-ssh
Note that the remote execution feature is enabled by default on Foreman/Satellite server. The Smart Proxy or Capsule server, on the other hand, must be specifically enabled with the above installed command.
Reference: