main.yml 285 Bytes
Newer Older
Lukas Schauer's avatar
Lukas Schauer committed
1
2
3
4
5
6
7
8
9
10
11
12
- name: Generate Firewall rules
  template:
    src: "rules.{{ item }}.j2"
    dest: "/etc/iptables/rules.{{ item }}"
  with_items:
    - v4
    - v6
  register: firewallconf

- name: Apply firewall rules
  command: /etc/init.d/netfilter-persistent reload
  when: firewallconf.changed