Allow traffic HTTP or HTTPS
4 min
Resumo
Permitir tráfego HTTP ou HTTPS
Parâmetros
Parâmetro | Tipo | Escolhas | Valor Padrão | Comentários |
|---|---|---|---|
table | string | | Nome da tabela. |
port | string | | porta |
Utiliza parâmetros do módulo Shell.
Exemplos
- shell:
arguments: sudo iptables -A {{ input.table }} eth0 -p tcp --dport {{ input.port }} -m state --state NEW,ESTABLISHED -j ACCEPT
register: resultValores 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 |