Hi, For connectivity to Cisco XR devices, i need to use one or more jumphosts. I am using: ansible_ssh_common_args: -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ProxyCommand="ssh -W %h:%p -q jumphost"
but also tried some other order of the arguments as was suggested in this thread (to no avail): https://groups.google.com/g/ansible-project/c/ny63wqcGv7Y vars: connection: network_cli ansible_network_os: cisco.iosxr.iosxr ssh_type: libssh Running: ansible 3.4.0 ansible-base 2.10.17 ansible-pylibssh 0.3.0 paramiko 2.10.5 As soon as i switch to ansible version 4.0,0 the ansible_ssh_common_args is not being read/loaded and the task: *- task* * - name: run show version on remote device cisco.iosxr.iosxr_command: commands: show version* This task fails * "msg": "ssh connection failed: ssh connect failed: Network is unreachable", * as it tries to connect to the host directly. The same results are yielded when running ansible 5.0.x and 6.0.x When I use the default connection: ssh in combination with iosxr_command "changed": false, "msg": "Connection type ssh is not valid for this module" So as jumphosts are quite normal to use as it is best practice, there must be a way to get this to work. I must be missing something, but after reading heaps of sources, i am unable to figure out how to get this to work in current non-EOL ansible. Thanx in advance. Regards -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/45bce891-c282-487b-9e96-391d28aee48fn%40googlegroups.com.
