Skip to content

[PR #2586/3464ee29 backport][stable-2.18] Update networking jumphost examples #2594

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented May 6, 2025

This is a backport of PR #2586 as merged into devel (3464ee2).

The ansible.netcommon.network_cli connection plugin uses the ansible.netcommon.libssh connection plugin or falls back to ansible.builtin.paramiko.

In ansible-core 2.18, the ansible.builtin.paramiko connection no longer uses the variable ansible_ssh_common_args to configure a jumphost, and instead requires the variable ansible_paramiko_proxy_command (which is compatible with ansible.netcommon.libssh in ansible.netcommon >= 2.2.0 too).

Using the wrong variable could cause issues like https://forum.ansible.com/t/while-running-playbook-ansible-is-not-using-the-proxy/42323.

I also fixed the example for ansible.netcommon.netconf, which never appears to have never supported ansible_ssh_common_args, but does support ansible_paramiko_proxy_command and ansible_netconf_proxy_command to configure a jumphost.

…2586)

The ansible.networking.network_cli connection plugin uses the
ansible.netcommon.libssh connection plugin or falls back to
ansible.builtin.paramiko.

The ansible.builtin.paramiko connection no longer uses the variable
'ansible_ssh_common_args' to configure connecting via a jumphost, and
now requires the variable 'ansible_paramiko_proxy_command'.

This variable is also supported by ansible.netcommon.libssh >= 2.2.0
(in addition to ansible_libssh_proxy_command).

Also fix example for ansible.netcommon.netconf, which never appears to
have never supported 'ansible_ssh_common_args', but does support
'ansible_paramiko_proxy_command' and 'ansible_netconf_proxy_command'.

(cherry picked from commit 3464ee2)
@samccann samccann merged commit 5f16773 into stable-2.18 May 6, 2025
11 checks passed
@samccann samccann deleted the patchback/backports/stable-2.18/3464ee29674a73f3a0c01faec35856b463fa1cdf/pr-2586 branch May 6, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants