.. Document meta :orphan: .. |antsibull-internal-nbsp| unicode:: 0xA0 :trim: .. meta:: :antsibull-docs: 2.23.0 .. Anchors .. _ansible_collections.amnesh.soodar.network_sooshell_connection: .. Anchors: short name for ansible.builtin .. Title amnesh.soodar.network_sooshell connection -- Use network\_sooshell to run command on Soodar network devices +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. Collection note .. note:: This connection plugin is part of the `amnesh.soodar collection `_ (version 1.0.0). It is not included in ``ansible-core``. To check whether it is installed, run :code:`ansible-galaxy collection list`. To install it, use: :code:`ansible\-galaxy collection install https://soodar.ir/ansible/amnesh.soodar.tar.gz`. You need further requirements to be able to use this connection plugin, see :ref:`Requirements ` for details. To use it in a playbook, specify: :code:`amnesh.soodar.network_sooshell`. .. version_added .. rst-class:: ansible-version-added New in amnesh.soodar 1.0.0 .. contents:: :local: :depth: 1 .. Deprecated Synopsis -------- .. Description - This connection plugin provides a connection to remote Soodar devices over the SSH and implements a CLI shell. This connection plugin is typically used by Soodar devices for sending and receiving CLi commands to Soodar devices. .. Aliases .. Requirements .. _ansible_collections.amnesh.soodar.network_sooshell_connection_requirements: Requirements ------------ The below requirements are needed on the local controller node that executes this connection. - ansible\-pylibssh .. Options Parameters ---------- .. tabularcolumns:: \X{1}{3}\X{2}{3} .. list-table:: :width: 100% :widths: auto :header-rows: 1 :class: longtable ansible-option-table * - Parameter - Comments * - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-become: .. rst-class:: ansible-option-title **become** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
The become option will instruct the CLI session to attempt privilege escalation on platforms that support it. Normally this means transitioning from user mode to :literal:`enable` mode in the CLI session. If become is set to True and the remote device does not support privilege escalation or the privilege has already been elevated, then this option is silently ignored. Can be configured from the CLI via the :literal:`\-\-become` or :literal:`\-b` options. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`true` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [privilege_escalation] become = false - Environment variable: :envvar:`ANSIBLE\_BECOME` - Variable: ansible\_become .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-become_errors: .. rst-class:: ansible-option-title **become_errors** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`string` .. raw:: html
- .. raw:: html
This option determines how privilege escalation failures are handled when :emphasis:`become` is enabled. When set to :literal:`ignore`\ , the errors are silently ignored. When set to :literal:`warn`\ , a warning message is displayed. The default option :literal:`fail`\ , triggers a failure and halts execution. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`"ignore"` - :ansible-option-choices-entry:`"warn"` - :ansible-option-choices-entry-default:`"fail"` :ansible-option-choices-default-mark:`← (default)` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Variable: ansible\_network\_become\_errors .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-become_method: .. rst-class:: ansible-option-title **become_method** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`string` .. raw:: html
- .. raw:: html
This option allows the become method to be specified in for handling privilege escalation. Typically the become\_method value is set to :literal:`enable` but could be defined as other values. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"sudo"` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [privilege_escalation] become_method = sudo - Environment variable: :envvar:`ANSIBLE\_BECOME\_METHOD` - Variable: ansible\_become\_method .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-host: .. rst-class:: ansible-option-title **host** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Specifies the remote device FQDN or IP address to establish the SSH connection to. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`"inventory\_hostname"` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Variable: inventory\_hostname - Variable: ansible\_host .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-host_key_auto_add: .. rst-class:: ansible-option-title **host_key_auto_add** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
By default, Ansible will prompt the user before adding SSH keys to the known hosts file. Since persistent connections such as network\_cli run in background processes, the user will never be prompted. By enabling this option, unknown host keys will automatically be added to the known hosts file. Be sure to fully understand the security implications of enabling this option on production systems as it could create a security vulnerability. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`true` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [paramiko_connection] host_key_auto_add = false - Environment variable: :envvar:`ANSIBLE\_HOST\_KEY\_AUTO\_ADD` .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-host_key_checking: .. rst-class:: ansible-option-title **host_key_checking** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Set this to "False" if you want to avoid host key checking by the underlying tools Ansible uses to connect to the host .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entries: .. code-block:: ini [defaults] host_key_checking = true .. code-block:: ini [persistent_connection] host_key_checking = true - Environment variable: :envvar:`ANSIBLE\_HOST\_KEY\_CHECKING` - Environment variable: :envvar:`ANSIBLE\_SSH\_HOST\_KEY\_CHECKING` - Variable: ansible\_host\_key\_checking - Variable: ansible\_ssh\_host\_key\_checking .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-import_modules: .. rst-class:: ansible-option-title **import_modules** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
Reduce CPU usage and network module execution time by enabling direct execution. Instead of the module being packaged and executed by the shell, it will be directly executed by the Ansible control node using the same python interpreter as the Ansible process. Note\- Incompatible with :literal:`asynchronous mode`. Note\- Python 3 and Ansible 2.9.16 or greater required. Note\- With Ansible 2.9.x fully qualified modules names are required in tasks. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [ansible_network] import_modules = true - Environment variable: :envvar:`ANSIBLE\_NETWORK\_IMPORT\_MODULES` - Variable: ansible\_network\_import\_modules .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-network_cli_retries: .. rst-class:: ansible-option-title **network_cli_retries** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
Number of attempts to connect to remote host. The delay time between the retires increases after every attempt by power of 2 in seconds till either the maximum attempts are exhausted or any of the :literal:`persistent\_command\_timeout` or :literal:`persistent\_connect\_timeout` timers are triggered. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`3` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [persistent_connection] network_cli_retries = 3 - Environment variable: :envvar:`ANSIBLE\_NETWORK\_CLI\_RETRIES` - Variable: ansible\_network\_cli\_retries .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-network_os: .. rst-class:: ansible-option-title **network_os** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Configures the device platform network operating system. This value is used to load the correct terminal and cliconf plugins to communicate with the remote device. .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Variable: ansible\_network\_os .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-password: .. rst-class:: ansible-option-title **password** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`string` .. raw:: html
- .. raw:: html
Configures the user password used to authenticate to the remote device when first establishing the SSH connection. .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Variable: ansible\_password - Variable: ansible\_ssh\_pass - Variable: ansible\_ssh\_password .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-persistent_buffer_read_timeout: .. rst-class:: ansible-option-title **persistent_buffer_read_timeout** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`float` .. raw:: html
- .. raw:: html
Configures, in seconds, the amount of time to wait for the data to be read from Paramiko channel after the command prompt is matched. This timeout value ensures that command prompt matched is correct and there is no more data left to be received from remote host. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`0.1` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [persistent_connection] buffer_read_timeout = 0.1 - Environment variable: :envvar:`ANSIBLE\_PERSISTENT\_BUFFER\_READ\_TIMEOUT` - Variable: ansible\_buffer\_read\_timeout .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-persistent_command_timeout: .. rst-class:: ansible-option-title **persistent_command_timeout** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
Configures, in seconds, the amount of time to wait for a command to return from the remote device. If this timer is exceeded before the command returns, the connection plugin will raise an exception and close. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`30` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [persistent_connection] command_timeout = 30 - Environment variable: :envvar:`ANSIBLE\_PERSISTENT\_COMMAND\_TIMEOUT` - Variable: ansible\_command\_timeout .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-persistent_connect_timeout: .. rst-class:: ansible-option-title **persistent_connect_timeout** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
Configures, in seconds, the amount of time to wait when trying to initially establish a persistent connection. If this value expires before the connection to the remote device is completed, the connection will fail. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`30` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [persistent_connection] connect_timeout = 30 - Environment variable: :envvar:`ANSIBLE\_PERSISTENT\_CONNECT\_TIMEOUT` - Variable: ansible\_connect\_timeout .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-persistent_log_messages: .. rst-class:: ansible-option-title **persistent_log_messages** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
This flag will enable logging the command executed and response received from target device in the ansible log file. For this option to work 'log\_path' ansible configuration option is required to be set to a file path with write access. Be sure to fully understand the security implications of enabling this option as it could create a security vulnerability by logging sensitive information in log file. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`true` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [persistent_connection] log_messages = false - Environment variable: :envvar:`ANSIBLE\_PERSISTENT\_LOG\_MESSAGES` - Variable: ansible\_persistent\_log\_messages .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-port: .. rst-class:: ansible-option-title **port** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`integer` .. raw:: html
- .. raw:: html
Specifies the port on the remote device that listens for connections when establishing the SSH connection. .. rst-class:: ansible-option-line :ansible-option-default-bold:`Default:` :ansible-option-default:`22` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [defaults] remote_port = 22 - Environment variable: :envvar:`ANSIBLE\_REMOTE\_PORT` - Variable: ansible\_port .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-private_key_file: .. rst-class:: ansible-option-title **private_key_file** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The private SSH key or certificate file used to authenticate to the remote device when first establishing the SSH connection. .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [defaults] private_key_file = VALUE - Environment variable: :envvar:`ANSIBLE\_PRIVATE\_KEY\_FILE` - Variable: ansible\_private\_key\_file .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-remote_user: .. rst-class:: ansible-option-title **remote_user** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The username used to authenticate to the remote device when the SSH connection is first established. If the remote\_user is not specified, the connection will use the username of the logged in user. Can be configured from the CLI via the :literal:`\-\-user` or :literal:`\-u` options. .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [defaults] remote_user = VALUE - Environment variable: :envvar:`ANSIBLE\_REMOTE\_USER` - Variable: ansible\_user .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-single_user_mode: .. rst-class:: ansible-option-title **single_user_mode** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`boolean` :ansible-option-versionadded:`added in amnesh.soodar 2.0.0` .. raw:: html
- .. raw:: html
This option enables caching of data fetched from the target for re\-use. The cache is invalidated when the target device enters configuration mode. Applicable only for platforms where this has been implemented. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`true` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Environment variable: :envvar:`ANSIBLE\_NETWORK\_SINGLE\_USER\_MODE` - Variable: ansible\_network\_single\_user\_mode .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-ssh_type: .. rst-class:: ansible-option-title **ssh_type** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`string` .. raw:: html
- .. raw:: html
The python package that will be used by the :literal:`network\_cli` connection plugin to create a SSH connection to remote host. :emphasis:`libssh` will use the ansible\-pylibssh package, which needs to be installed in order to work. :emphasis:`paramiko` will instead use the paramiko package to manage the SSH connection. :emphasis:`auto` will use ansible\-pylibssh if that package is installed, otherwise will fallback to paramiko. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`"libssh"` - :ansible-option-choices-entry:`"paramiko"` - :ansible-option-choices-entry-default:`"auto"` :ansible-option-choices-default-mark:`← (default)` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - INI entry: .. code-block:: ini [persistent_connection] ssh_type = auto - Environment variable: :envvar:`ANSIBLE\_NETWORK\_CLI\_SSH\_TYPE` - Variable: ansible\_network\_cli\_ssh\_type .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-terminal_errors: .. rst-class:: ansible-option-title **terminal_errors** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`string` :ansible-option-versionadded:`added in amnesh.soodar 3.1.0` .. raw:: html
- .. raw:: html
This option determines how failures while setting terminal parameters are handled. When set to :literal:`ignore`\ , the errors are silently ignored. When set to :literal:`warn`\ , a warning message is displayed. The default option :literal:`fail`\ , triggers a failure and halts execution. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`"ignore"` - :ansible-option-choices-entry:`"warn"` - :ansible-option-choices-entry-default:`"fail"` :ansible-option-choices-default-mark:`← (default)` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Variable: ansible\_network\_terminal\_errors .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-terminal_inital_prompt_newline: .. rst-class:: ansible-option-title **terminal_inital_prompt_newline** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
This boolean flag, that when set to :emphasis:`True` will send newline in the response if any of values in :emphasis:`terminal\_initial\_prompt` is matched. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry:`false` - :ansible-option-choices-entry-default:`true` :ansible-option-choices-default-mark:`← (default)` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Variable: ansible\_terminal\_initial\_prompt\_newline .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-terminal_initial_answer: .. rst-class:: ansible-option-title **terminal_initial_answer** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`list` / :ansible-option-elements:`elements=string` .. raw:: html
- .. raw:: html
The answer to reply with if the :literal:`terminal\_initial\_prompt` is matched. The value can be a single answer or a list of answers for multiple terminal\_initial\_prompt. In case the login menu has multiple prompts the sequence of the prompt and excepted answer should be in same order and the value of :emphasis:`terminal\_prompt\_checkall` should be set to :emphasis:`True` if all the values in :literal:`terminal\_initial\_prompt` are expected to be matched and set to :emphasis:`False` if any one login prompt is to be matched. .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Variable: ansible\_terminal\_initial\_answer .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-terminal_initial_prompt: .. rst-class:: ansible-option-title **terminal_initial_prompt** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`list` / :ansible-option-elements:`elements=string` .. raw:: html
- .. raw:: html
A single regex pattern or a sequence of patterns to evaluate the expected prompt at the time of initial login to the remote host. .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Variable: ansible\_terminal\_initial\_prompt .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-terminal_initial_prompt_checkall: .. rst-class:: ansible-option-title **terminal_initial_prompt_checkall** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`boolean` .. raw:: html
- .. raw:: html
By default the value is set to :emphasis:`False` and any one of the prompts mentioned in :literal:`terminal\_initial\_prompt` option is matched it won't check for other prompts. When set to :emphasis:`True` it will check for all the prompts mentioned in :literal:`terminal\_initial\_prompt` option in the given order and all the prompts should be received from remote host if not it will result in timeout. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`false` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`true` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Variable: ansible\_terminal\_initial\_prompt\_checkall .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-terminal_stderr_re: .. rst-class:: ansible-option-title **terminal_stderr_re** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`list` / :ansible-option-elements:`elements=dictionary` .. raw:: html
- .. raw:: html
This option provides the regex pattern and optional flags to match the error string from the received response chunk. This option accepts :literal:`pattern` and :literal:`flags` keys. The value of :literal:`pattern` is a python regex pattern to match the response and the value of :literal:`flags` is the value accepted by :emphasis:`flags` argument of :emphasis:`re.compile` python method to control the way regex is matched with the response, for example :emphasis:`'re.I'`. .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Variable: ansible\_terminal\_stderr\_re .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-terminal_stdout_re: .. rst-class:: ansible-option-title **terminal_stdout_re** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`list` / :ansible-option-elements:`elements=dictionary` .. raw:: html
- .. raw:: html
A single regex pattern or a sequence of patterns along with optional flags to match the command prompt from the received response chunk. This option accepts :literal:`pattern` and :literal:`flags` keys. The value of :literal:`pattern` is a python regex pattern to match the response and the value of :literal:`flags` is the value accepted by :emphasis:`flags` argument of :emphasis:`re.compile` python method to control the way regex is matched with the response, for example :emphasis:`'re.I'`. .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Variable: ansible\_terminal\_stdout\_re .. raw:: html
* - .. raw:: html
.. _ansible_collections.amnesh.soodar.network_sooshell_connection__parameter-terminal_type: .. rst-class:: ansible-option-title **terminal_type** .. raw:: html .. ansible-option-type-line:: :ansible-option-type:`string` :ansible-option-versionadded:`added in amnesh.soodar 3.1.0` .. raw:: html
- .. raw:: html
Specifies the terminal type to be used when requesting the pseudo terminal from the remote device. The default terminal type is :literal:`dumb`. .. rst-class:: ansible-option-line :ansible-option-choices:`Choices:` - :ansible-option-choices-entry-default:`"dumb"` :ansible-option-choices-default-mark:`← (default)` - :ansible-option-choices-entry:`"vt100"` - :ansible-option-choices-entry:`"xterm"` - :ansible-option-choices-entry:`"xterm\-256color"` .. rst-class:: ansible-option-line :ansible-option-configuration:`Configuration:` - Environment variable: :envvar:`AMNESH\_NETWORK\_TERMINAL\_TYPE` - Variable: amnesh\_network\_terminal\_type .. raw:: html
.. note:: Configuration entries listed above for each entry type (Ansible variable, environment variable, and so on) 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. The entry types are also ordered by precedence from low to high priority order. For example, an ansible.cfg entry (further up in the list) is overwritten by an Ansible variable (further down in the list). .. Attributes .. Notes .. Seealso .. Examples .. Facts .. Return values .. Status (Presently only deprecated) .. Authors Authors ~~~~~~~ - Ansible Networking Team (@ansible-network) .. Extra links Collection links ~~~~~~~~~~~~~~~~ .. ansible-links:: - title: "Issue Tracker" url: "http://soodar.ir/issue/tracker" external: true - title: "Homepage" url: "http://soodar.ir" external: true - title: "Repository (Sources)" url: "https://192.168.222.222/amnesh/soodar/soosible" external: true .. Parsing errors