---
title: Shell
slug: homologacao-atmosphere/shell
description: Learn how to use a powerful shell command execution tool with this comprehensive document. Discover the various parameters, including directory changes and shell executable specifications, along with practical examples. Gain insights into the tool's retur
createdAt: 2021-03-26T17:08:20.000Z
---

## Resumo

- Execute comandos do shell por executáveis nos destinos.

## Parâmetros

| **Parâmetro** | **Tipo** | **Escolhas \| Valor Padrão** | **Comentários**                                                                                       |
| ------------- | -------- | ---------------------------- | ----------------------------------------------------------------------------------------------------- |
| chdir         | path     |                              | Mudar para um diretório antes de executar o comando.                                                  |
| executable    | path     |                              | Altere o shell usado para executar o comando.<br />Isso espera um caminho absoluto para o executável. |
| arguments     | string   | - " "<br />(default)         | Argumentos                                                                                            |



## Exemplos

```yaml
# Exemplo: Cat file from default shell
- shell: 
    arguments: cat /etc/hosts
  register: result
```



## Valores retornados

| **Chave**  | **Tipo**   | **Retornado quando** | **Descrição**                       |
| ---------- | ---------- | -------------------- | ----------------------------------- |
| changed    | boolean    | Sempre               | Se a operação foi realizada ou não. |
| validation | dictionary | Sempre               | Resultado completo da operação.     |

