https://github.com/wluisaraujo/ansible-role-iptables
Infrastructure as Code (IaC) with Ansible role for Iptables
https://github.com/wluisaraujo/ansible-role-iptables
ansible ansible-role firewall iptables
Last synced: 2 months ago
JSON representation
Infrastructure as Code (IaC) with Ansible role for Iptables
- Host: GitHub
- URL: https://github.com/wluisaraujo/ansible-role-iptables
- Owner: wluisaraujo
- License: gpl-3.0
- Created: 2018-04-04T21:57:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-02T19:11:03.000Z (almost 7 years ago)
- Last Synced: 2025-07-10T12:11:15.521Z (12 months ago)
- Topics: ansible, ansible-role, firewall, iptables
- Language: Shell
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://galaxy.ansible.com/wluisaraujo/iac-ansible-iptables) [](https://travis-ci.org/wluisaraujo/ansible-role-iptables)
# IaC: with [Ansible](https://www.ansible.com) role to configure [Iptables](https://www.netfilter.org/)
------------
Description
------------
Configura iptables firewall Linux. Com suporte para IPv4
Requirements
------------
*
Installation
------------
```console
vagrant@localhost:~$ ansible-galaxy install wluisaraujo.iptables
vagrant@localhost:~$ ansible-galaxy install -r wluisaraujo.iptables/requirements.txt
```
Role Variables
--------------
[defaults/main.yml](defaults/main.yml)
firewall_state: started
firewall_enabled_at_boot: true
Dependencies
------------
* None
Example Playbook
----------------
```yaml
---
- hosts: localhost
vars_files:
- vars/main.yml
roles:
- { role: iptables }
...
```
----------------
[](https://www.gnu.org/licenses/gpl-3.0.pt-br.html)