chmduquesne.iptables_persistent

Build Status Ansible Galaxy

Role Name

chmduquesne.iptables_persistent

Requirements

Ansible 2.2+ on a Debian-based system

Role Variables

None

Dependencies

None

Example Playbook

The idea of this role is to set iptables rules from the relevant role (e.g. with ansible's native module), and to call the handler persist iptables when doing so. This will save ipv4 and ipv6 rules.

- hosts: servers
  roles:
    - chmduquesne.iptables_persistent
  tasks:
    - name: "add some iptable rule"
      iptables:
        chain: INPUT
        source: 8.8.8.8
        jump: DROP
      become: yes
      notify:
        - persist iptables

License

BSD

About

Install iptables-persistent and listen to the handler "persist iptables"

Install
ansible-galaxy install chmduquesne.iptables_persistent
GitHub repository
License
Unknown
Downloads
15k