Ohai,
while poking around to get Ansible properly working on Debian, I realized that we have an “unwritten” dependency between the remote_execution_ssh and ansible plugins on the proxy.
The Ansible plugin doesn’t need any of the code from REX, but it relies on some details that are only true when REX is installed:
-
~foreman-proxy/.ssh
is created by REX packaging -
~foreman-proxy/.ssh/id_*
is created by REX installer - users often rely on
/ssh/pubkey
endpoint to fetch the SSH Key, which is also provided by REX
So I wondered if users who enable Ansible also should automatically get REX-SSH enabled?
Or shall we move that common setup stuff to a more centralized place where both plugins could consume it?
Otherwise users who (today) call the installer with --enable-foreman-plugin-ansible --enable-foreman-proxy-plugin-ansible
end up with a setup that cannot run Ansible for them.