Skip to content

Update networking jumphost examples #2586

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

Merged
merged 1 commit into from
May 6, 2025

Conversation

s-hertel
Copy link
Contributor

@s-hertel s-hertel commented May 1, 2025

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.

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'.
@samccann samccann added backport-2.18 Automatically create a backport for the stable-2.18 branch backport-2.19 Automatically create a backport for the stable-2.19 branch labels May 6, 2025
@samccann samccann merged commit 3464ee2 into ansible:devel May 6, 2025
12 checks passed
Copy link

patchback bot commented May 6, 2025

Backport to stable-2.18: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2.18/3464ee29674a73f3a0c01faec35856b463fa1cdf/pr-2586

Backported as #2594

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request May 6, 2025
…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)
Copy link

patchback bot commented May 6, 2025

Backport to stable-2.19: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-2.19/3464ee29674a73f3a0c01faec35856b463fa1cdf/pr-2586

Backported as #2595

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request May 6, 2025
…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 pushed a commit that referenced this pull request May 6, 2025
…2586) (#2594)

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)

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
samccann pushed a commit that referenced this pull request May 6, 2025
…2586) (#2595)

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)

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-2.18 Automatically create a backport for the stable-2.18 branch backport-2.19 Automatically create a backport for the stable-2.19 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants