2016-10-14 15:50:24 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Iptables configured
|
|
|
|
template: src="{{ item.src }}" dest="{{ item.dest }}" owner=root group=root mode=0640
|
|
|
|
with_items:
|
|
|
|
- { src: rules.v4.j2, dest: /etc/iptables/rules.v4 }
|
2017-01-11 17:55:44 +00:00
|
|
|
notify:
|
|
|
|
- restart iptables
|
|
|
|
|
|
|
|
- name: Iptables configured
|
|
|
|
template: src="{{ item.src }}" dest="{{ item.dest }}" owner=root group=root mode=0640
|
|
|
|
when: ipv6_support is defined and ipv6_support == "yes"
|
|
|
|
with_items:
|
2016-10-14 15:50:24 +00:00
|
|
|
- { src: rules.v6.j2, dest: /etc/iptables/rules.v6 }
|
|
|
|
notify:
|
|
|
|
- restart iptables
|