mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-27 13:28:51 +07:00
Merge pull request #1258 from Devids10/paramiko_contradictions
MUNI_TECH_WRITERS: Paramiko contradictions, issue #1042
(cherry picked from commit 499f415508)
This commit is contained in:
@@ -310,9 +310,7 @@ There are also some tasks which are generated internally and implicitly at vario
|
||||
Connection plugins
|
||||
------------------
|
||||
|
||||
Connection plugins allow Ansible to connect to the target hosts so it can execute tasks on them. Ansible ships with many connection plugins, but only one can be used per host at a time. The most commonly used connection plugins are the ``paramiko`` SSH, native ssh (just called ``ssh``), and ``local`` connection types. All of these can be used in playbooks and with ``/usr/bin/ansible`` to connect to remote machines.
|
||||
|
||||
Ansible version 2.1 introduced the ``smart`` connection plugin. The ``smart`` connection type allows Ansible to automatically select either the ``paramiko`` or ``openssh`` connection plugin based on system capabilities, or the ``ssh`` connection plugin if OpenSSH supports ControlPersist.
|
||||
Connection plugins allow Ansible to connect to target hosts so it can execute tasks on them. Ansible ships with many connection plugins, but only one can be used per host at a time. The most commonly used connection plugins are native ``ssh``, ``paramiko``, and ``local``. All of these can be used with ad-hoc tasks and in playbooks.
|
||||
|
||||
To create a new connection plugin (for example, to support SNMP, Message bus, or other transports), copy the format of one of the existing connection plugins and drop it into ``connection`` directory on your :ref:`local plugin path <local_plugins>`.
|
||||
|
||||
|
||||
@@ -582,7 +582,7 @@ Host connection:
|
||||
.. include:: shared_snippets/SSH_password_prompt.txt
|
||||
|
||||
ansible_connection
|
||||
Connection type to the host. This can be the name of any Ansible connection plugin. SSH protocol types are ``smart``, ``ssh`` or ``paramiko``. The default is smart. Non-SSH based types are described in the next section.
|
||||
Connection type to the host. This can be the name of any Ansible connection plugin. SSH protocol types are ``ssh`` or ``paramiko``. The default is ``ssh``.
|
||||
|
||||
General for all connections:
|
||||
|
||||
|
||||
@@ -354,12 +354,9 @@ when a term comes up on the mailing list.
|
||||
Ansible orchestration is all about modeling that kind of process.
|
||||
|
||||
paramiko
|
||||
By default, Ansible manages machines over SSH. The library that
|
||||
Ansible uses by default to do this is a Python-powered library called
|
||||
paramiko. The paramiko library is generally fast and easy to manage,
|
||||
though users who want to use Kerberos or Jump Hosts may wish to switch
|
||||
to a native SSH binary such as OpenSSH by specifying the connection
|
||||
type in their :term:`playbooks`, or using the ``-c ssh`` flag.
|
||||
Ansible can use a Python SSH implementation called ``paramiko``.
|
||||
The paramiko library is generally fast and easy to manage.
|
||||
To use paramiko you need to specify the connection type in your :term:`playbooks`, or by using the ``-c paramiko`` flag.
|
||||
|
||||
Playbooks
|
||||
Playbooks are the language by which Ansible orchestrates, configures,
|
||||
|
||||
Reference in New Issue
Block a user