I'm using ansible as a way of remote execution on my foreman / satellite servers. With version 3.5 (foreman) / 6.13 (satellite) I've found that the setting for 'ansible_ssh_private_key_file' is not permanently set after re-running 'foreman-installer'.
First, verify that's actually your problem:
[root@katello ~]# hammer --no-use-defaults settings info --name 'ansible_ssh_private_key_file'
If the value returned is not correct, fix it by using the 'settings set'-subcommand:
[root@katello ~]# hammer --no-use-defaults settings set --name 'ansible_ssh_private_key_file' --value '/var/lib/foreman-proxy/ssh/foreman-proxy-ecdsa'
Ansible should now work, there's no restart of foreman-proxy required.
Feel free to comment and / or suggest a topic.
Comments
Post a Comment