---
title: Telnet
slug: homologacao-atmosphere/telnet
description: Learn about the telnet command in Ansible with this comprehensive document. Discover how to execute telnet commands at a low level, bypassing the module's subsystem. Explore the various parameters such as "commands," "host," "port," "pause," "timeout," an
createdAt: 2021-12-22T10:47:06.000Z
---

## Resumo

- Executa um comando telnet em baixo nível, não passando pelo subsistema do módulo.

## Parâmetros

| **Parâmetro**            | **Tipo**               | **Escolhas \| Valor Padrão** | **Comentários**                                           |
| ------------------------ | ---------------------- | ---------------------------- | --------------------------------------------------------- |
| commands - required      | list / elements=string |                              | Lista de comandos a serem executados na sessão telnet.    |
| host                     | string                 | Default:<br />"remote\_addr" | O host / destino em que os comandos serão executados.     |
| port                     | integer                | Default:<br />23             | Porta remota usada.                                       |
| pause                    | integer                | Default:<br />1              | Segundos para fazer uma pausa entre cada comando emitido. |
| timeout                  | integer                | Default:<br />120            | Tempo limite para operações remotas.                      |
| write\_executed\_command | bool                   | Default:<br />False          | Inclue o comando executado na saída.                      |

## Exemplos

```yaml
- name: Run EHLO command
  telnet:
    host: 127.0.0.1
    port: 587
    write_executed_command: true
    commands:
      - EHLO send.testmail.com

- name: Run show commands
  telnet:
    host: 127.0.0.1
    port: 22
    commands:
      - terminal length 0
      - show version
```

## Valores Retornados

| **Chave** | **Tipo**               | **Retornado quando** | **Descrição**                                      |
| --------- | ---------------------- | -------------------- | -------------------------------------------------- |
| output    | list / elements=string | sempre               | A saída de cada comando é um elemento desta lista. |



