-
Notifications
You must be signed in to change notification settings - Fork 621
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
Update networking jumphost examples #2586
Conversation
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'.
Backport to stable-2.18: 💚 backport PR created✅ Backport PR branch: Backported as #2594 🤖 @patchback |
…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)
Backport to stable-2.19: 💚 backport PR created✅ Backport PR branch: Backported as #2595 🤖 @patchback |
…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)
…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>
…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>
The
ansible.netcommon.network_cli
connection plugin uses theansible.netcommon.libssh
connection plugin or falls back toansible.builtin.paramiko
.In ansible-core 2.18, the
ansible.builtin.paramiko
connection no longer uses the variableansible_ssh_common_args
to configure a jumphost, and instead requires the variableansible_paramiko_proxy_command
(which is compatible withansible.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 supportedansible_ssh_common_args
, but does supportansible_paramiko_proxy_command
andansible_netconf_proxy_command
to configure a jumphost.