Hi folks need ansible proxycomand to run on network devices through bastion host without ~/.ssh/config method.Need to be command in hostfile itself.

host file:-

[asa]

x.x.x.x

[asa:vars]

ansible_user=xxxx

ansible_password=xxxxx

ansible_auth_pass=xxxxx

ansible_python_interpreter=/usr/bin/python2.7

ansible_network_os=asa

ansible_connection=network_cli

ansible_ssh_common_args=‘-o ProxyCommand=“sshpass -p ‘passwordbastion’ ssh -W %h:%p -q username@bastionhost”’

tried like above but not able to run on asa through proxy command.

able to do ssh manually to the device.

Can some one help here to get the correct proxy command for network devices.

Thanks in advance.

Hi Guys can some one help here to execute network playbook through bastion host