---
title: Set Default Rule
slug: homologacao-atmosphere/set-default-rule
description: Learn how to set a default rule using the Shell module with this comprehensive document. Discover the various parameters and find practical examples to guide you. Gain insights into the values returned, such as output, errors, and warnings. Enhance your u
createdAt: 2022-07-26T13:46:53.000Z
---

## Resumo

- Definir regra padrão

## Parâmetros

Utiliza parâmetros do módulo [Shell](https://docs.simonops.com/homologacao-atmosphere/shell).

## Exemplos

```yaml
- shell: 
    arguments: sudo iptables -P INPUT DROP
  register: result
```

## Valores retornados

| **Chave**        | **Tipo** | **Retornado quando** | **Descrição**              |
| ---------------- | -------- | -------------------- | -------------------------- |
| output           | string   | Sempre               | Saída da execução          |
| had\_errors      | boolean  | Sempre               | Se teve erros              |
| output\_errors   | string   | Sempre               | Erros de saída da execução |
| output\_warnings | string   | Sempre               | Avisos de saída            |



