Skip to content

Commit 1ca04de

Browse files
Merge pull request #559 from michaeljohn32/ssh_netscaler_adc_conn_fix
fix: options to align to `ssh` ansible plugin
2 parents d9fc5cc + c1d55cc commit 1ca04de

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
# Fixed
11+
12+
- Resolved error with `ssh_netscaler_adc` connection plugin with newer versions of ansible
13+
1014
## [2.10.1] - 2025-09-16
1115

1216
# Fixed

plugins/connection/ssh_netscaler_adc.py

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,21 @@
5353
vars:
5454
- name: ansible_host_key_checking
5555
- name: ansible_ssh_host_key_checking
56+
password_mechanism:
57+
description: Mechanism to use for handling ssh password prompt
58+
type: string
59+
default: ssh_askpass
60+
choices:
61+
- ssh_askpass
62+
- sshpass
63+
- disable
64+
version_added: '2.19.0'
65+
env:
66+
- name: ANSIBLE_SSH_PASSWORD_MECHANISM
67+
ini:
68+
- {key: password_mechanism, section: ssh_connection}
69+
vars:
70+
- name: ansible_ssh_password_
5671
password:
5772
description: Authentication password for the C(remote_user). Can be supplied as CLI option.
5873
vars:
@@ -248,6 +263,27 @@
248263
key: control_path_dir
249264
vars:
250265
- name: ansible_control_path_dir
266+
private_key:
267+
description:
268+
- Private key contents in PEM format. Requires the C(SSH_AGENT) configuration to be enabled.
269+
type: string
270+
env:
271+
- name: ANSIBLE_PRIVATE_KEY
272+
vars:
273+
- name: ansible_private_key
274+
- name: ansible_ssh_private_key
275+
version_added: '2.19.0'
276+
private_key_passphrase:
277+
description:
278+
- Private key passphrase, dependent on O(private_key).
279+
- This does NOT have any effect when used with O(private_key_file).
280+
type: string
281+
env:
282+
- name: ANSIBLE_PRIVATE_KEY_PASSPHRASE
283+
vars:
284+
- name: ansible_private_key_passphrase
285+
- name: ansible_ssh_private_key_passphrase
286+
version_added: '2.19.0'
251287
sftp_batch_mode:
252288
default: 'yes'
253289
description: 'TODO: write it'
@@ -315,6 +351,17 @@
315351
- name: ANSIBLE_PKCS11_PROVIDER
316352
vars:
317353
- name: ansible_pkcs11_provider
354+
verbosity:
355+
version_added: '2.19.0'
356+
default: 0
357+
type: int
358+
description:
359+
- Requested verbosity level for the SSH CLI.
360+
env: [{name: ANSIBLE_SSH_VERBOSITY}]
361+
ini:
362+
- {key: verbosity, section: ssh_connection}
363+
vars:
364+
- name: ansible_ssh_verbosity
318365
"""
319366

320367
import codecs

0 commit comments

Comments
 (0)