Skip to content

Commit

Permalink
resolved some sanity isues
Browse files Browse the repository at this point in the history
  • Loading branch information
shivashankar-vaddepally committed Dec 11, 2024
1 parent 97cff8b commit 4b339a6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 37 deletions.
8 changes: 0 additions & 8 deletions ansible.cfg

This file was deleted.

58 changes: 30 additions & 28 deletions plugins/connection/ssh_netscaler_adc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,20 @@
__metaclass__ = type

DOCUMENTATION = '''
connection: ssh_netscaler_adc
name: ssh_netscaler_adc
short_description: connect via ssh client binary with Netscaler ADC bypassing the cli
description:
- This connection plugin allows ansible to communicate to the target Netscaler ADC via normal ssh command line.
- The only authentication method that works with this plugin is with ssh key file.
- The input options supported by this connection plugin are the same as the ssh connection plugin of Ansible.
author:
- Sergios Lenis ([email protected])
- George Nikolopoulos ([email protected])
- Shiva Shankar Vaddepally ([email protected])
version_added: "1.0.0"
- name: Sergios Lenis
email: [email protected]
- name: George Nikolopoulos
email: [email protected]
- name: Shiva Shankar Vaddepally
email: [email protected]
version_added: "2.0.0"
options:
host:
description: Hostname/ip to connect to.
Expand Down Expand Up @@ -74,7 +76,7 @@
- name: ANSIBLE_SSHPASS_PROMPT
vars:
- name: ansible_sshpass_prompt
version_added: '2.10'
version_added: "2.0.0"
ssh_args:
description: Arguments to pass to all ssh cli tools
default: '-C -o ControlMaster=auto -o ControlPersist=60s'
Expand All @@ -85,7 +87,7 @@
- name: ANSIBLE_SSH_ARGS
vars:
- name: ansible_ssh_args
version_added: '2.7'
version_added: "2.0.0"
ssh_common_args:
description: Common extra args for all ssh CLI tools
ini:
Expand All @@ -110,7 +112,7 @@
version_added: "2.2"
vars:
- name: ansible_ssh_executable
version_added: '2.7'
version_added: "2.0.0"
sftp_executable:
default: sftp
description:
Expand All @@ -121,7 +123,7 @@
version_added: "2.6"
vars:
- name: ansible_sftp_executable
version_added: '2.7'
version_added: "2.0.0"
scp_executable:
default: scp
description:
Expand All @@ -132,40 +134,40 @@
version_added: "2.6"
vars:
- name: ansible_scp_executable
version_added: '2.7'
version_added: "2.0.0"
scp_extra_args:
description: Extra exclusive to the ``scp`` CLI
vars:
- name: ansible_scp_extra_args
env:
- name: ANSIBLE_SCP_EXTRA_ARGS
version_added: '2.7'
version_added: "2.0.0"
ini:
- key: scp_extra_args
section: ssh_connection
version_added: '2.7'
version_added: "2.0.0"
sftp_extra_args:
description: Extra exclusive to the ``sftp`` CLI
vars:
- name: ansible_sftp_extra_args
env:
- name: ANSIBLE_SFTP_EXTRA_ARGS
version_added: '2.7'
version_added: "2.0.0"
ini:
- key: sftp_extra_args
section: ssh_connection
version_added: '2.7'
version_added: "2.0.0"
ssh_extra_args:
description: Extra exclusive to the 'ssh' CLI
vars:
- name: ansible_ssh_extra_args
env:
- name: ANSIBLE_SSH_EXTRA_ARGS
version_added: '2.7'
version_added: "2.0.0"
ini:
- key: ssh_extra_args
section: ssh_connection
version_added: '2.7'
version_added: "2.0.0"
retries:
# constant: ANSIBLE_SSH_RETRIES
description: Number of attempts to connect.
Expand All @@ -180,7 +182,7 @@
key: retries
vars:
- name: ansible_ssh_retries
version_added: '2.7'
version_added: "2.0.0"
reconnection_retries:
description: Number of attempts to connect.
default: 0
Expand All @@ -194,7 +196,7 @@
key: retries
vars:
- name: ansible_ssh_retries
version_added: '2.7'
version_added: "2.0.0"
port:
description: Remote port to connect to.
type: int
Expand Down Expand Up @@ -262,7 +264,7 @@
section: ssh_connection
vars:
- name: ansible_control_path
version_added: '2.7'
version_added: "2.0.0"
control_path_dir:
default: ~/.ansible/cp
description:
Expand All @@ -275,7 +277,7 @@
key: control_path_dir
vars:
- name: ansible_control_path_dir
version_added: '2.7'
version_added: "2.0.0"
sftp_batch_mode:
default: 'yes'
description: 'TODO: write it'
Expand All @@ -285,7 +287,7 @@
type: bool
vars:
- name: ansible_sftp_batch_mode
version_added: '2.7'
version_added: "2.0.0"
ssh_transfer_method:
description:
- "Preferred method to use when transferring files over ssh"
Expand All @@ -306,7 +308,7 @@
- {key: scp_if_ssh, section: ssh_connection}
vars:
- name: ansible_scp_if_ssh
version_added: '2.7'
version_added: "2.0.0"
use_tty:
version_added: '2.5'
default: 'yes'
Expand All @@ -317,7 +319,7 @@
type: bool
vars:
- name: ansible_ssh_use_tty
version_added: '2.7'
version_added: "2.0.0"
timeout:
default: 10
description:
Expand All @@ -326,16 +328,16 @@
env:
- name: ANSIBLE_TIMEOUT
- name: ANSIBLE_SSH_TIMEOUT
version_added: '2.11'
version_added: "2.0.0"
ini:
- key: timeout
section: defaults
- key: timeout
section: ssh_connection
version_added: '2.11'
version_added: "2.0.0"
vars:
- name: ansible_ssh_timeout
version_added: '2.11'
version_added: "2.0.0"
cli:
- name: timeout
type: integer
Expand All @@ -349,7 +351,7 @@
- name: ANSIBLE_PKCS11_PROVIDER
vars:
- name: ansible_pkcs11_provider
version_added: '2.11'
version_added: "2.0.0"
'''

import codecs
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ antsibull-docs
sphinx
sphinx-ansible-theme
galaxy-importer==0.5.0
ansible-core>=2.14.0
ansible-core>=2.15.13

0 comments on commit 4b339a6

Please sign in to comment.