ansible.netcommon.libssh connection – (Tech preview) Run tasks using libssh for ssh connection
Note
This connection plugin is part of the ansible.netcommon collection (version 2.6.1).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install ansible.netcommon
.
To use it in a playbook, specify: ansible.netcommon.libssh
.
New in version 1.1.0: of ansible.netcommon
Synopsis
Use the ansible-pylibssh python bindings to connect to targets
The python bindings use libssh C library (https://www.libssh.org/) to connect to targets
This plugin borrows a lot of settings from the ssh plugin as they both cover the same protocol.
Parameters
Parameter |
Comments |
---|---|
TODO: write it Choices:
Configuration:
|
|
Set this to “False” if you want to avoid host key checking by the underlying tools Ansible uses to connect to the host Choices:
Configuration:
|
|
TODO: write it Choices:
Configuration:
|
|
Secret used to either login the ssh server or as a passphrase for ssh keys that require it Can be set from the CLI via the Configuration:
|
|
Proxy information for running the connection via a jumphost. Also this plugin will scan ‘ssh_args’, ‘ssh_extra_args’ and ‘ssh_common_args’ from the ‘ssh’ plugin settings for proxy information if set. Default: “” Configuration:
|
|
TODO: write it Choices:
Configuration:
|
|
Address of the remote target Default: “inventory_hostname” Configuration:
|
|
User to login/authenticate as Can be set from the CLI via the Configuration:
|
|
Toggles the use of persistence for connections Choices:
Configuration:
|
Authors
Ansible Networking Team (@ansible-network)
Hint
Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.