summaryrefslogtreecommitdiffstats
path: root/docs/docsite/rst/plugins/terminal.rst
blob: 010805f76c7f54af13c3d279a62d24218ad1aa18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.. _terminal_plugins:

Terminal plugins
================

.. contents::
   :local:
   :depth: 2

Terminal plugins contain information on how to prepare a particular network device's SSH shell is properly initialized to be used with Ansible. This typically includes disabling automatic paging, detecting errors in output, and enabling privileged mode if supported and required on the device.

These plugins correspond one-to-one to network device platforms. Ansible loads the appropriate terminal plugin automatically based on the ``ansible_network_os`` variable.

.. _enabling_terminal:

Adding terminal plugins
-------------------------

You can extend Ansible to support other network devices by dropping a custom plugin into the ``terminal_plugins`` directory.

.. _using_terminal:

Using terminal plugins
------------------------

Ansible determines which terminal plugin to use automatically from the ``ansible_network_os`` variable. There should be no reason to override this functionality.

Terminal plugins operate without configuration. All options to control the terminal are exposed in the ``network_cli`` connection plugin.

Plugins are self-documenting. Each plugin should document its configuration options.

.. _terminal_plugin_list:

Viewing terminal plugins
------------------------

These plugins have migrated to collections on `Ansible Galaxy <https://galaxy.ansible.com>`_. If you installed Ansible version 2.10 or later using ``pip``, you have access to several terminal plugins. To list all available terminal plugins on your control node, type ``ansible-doc -t terminal -l``. To view plugin-specific documentation and examples, use ``ansible-doc -t terminal``.


.. seealso::

   :ref:`Ansible for Network Automation<network_guide>`
       An overview of using Ansible to automate networking devices.
   :ref:`connection_plugins`
       Connection plugins
   `User Mailing List <https://groups.google.com/group/ansible-devel>`_
       Have a question?  Stop by the google group!
   `irc.libera.chat <https://libera.chat/>`_
       #ansible-network IRC chat channel