ansible-personal/roles/common/tasks/iptables_Debian.yml
Alan Orth a8f4500567 Add IPv6 support to firewall tasks / template
Signed-off-by: Alan Orth <alan.orth@gmail.com>
2015-05-25 18:17:23 +03:00

14 lines
416 B
YAML

---
- name: Install iptables-persistent
apt: pkg=iptables-persistent update_cache=yes
- name: Copy /etc/iptables/rules.v4
template: src=iptables.j2 dest=/etc/iptables/rules.v4 owner=root mode=0600
notify:
- restart iptables-persistent
- name: Copy /etc/iptables/rules.v6
template: src=ip6tables.j2 dest=/etc/iptables/rules.v6 owner=root group=root mode=0600
notify:
- restart iptables-persistent