SSH connectivity between control and managed nodes to run ansible playbook

Hi Community,

I’m using ansible version - ansible [core 2.16.3]. Instead of using default ssh (/usr/bin/ssh) path, we configured a new ssh path (/usr/local/bin/ssh), which is blocking ansible playbooks to run from control node to managed nodes. Could you please let me know if this is possible to specify the exact ssh path in the ansible configuration to use the new path? Thank You.

Hi, you can set the ssh_executable parameter of the SSH connection plugin to whatever you like

https://docs.ansible.com/ansible/latest/collections/ansible/builtin/ssh_connection.html

Although, you might also achieve the same result by adjusting the PATH env variable so it is used also by users issuing a SSH command, that is a more consistent approach if you see what I mean.

5 Likes

Thank you Matt for the quick response.

1 Like