aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/firewall/tasks/main.yml
blob: 95d02d3611fb5cd7c26172992f0476cdcbf2037a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- name: Install iptables-persistent
  become: true
  ansible.builtin.apt:
    install_recommends: false
    name: iptables-persistent
    state: present

- name: Configure rule files
  ansible.builtin.include_tasks: file.yml
  loop:
    - {src: rules.v4, dest: /etc/iptables/rules.v4, tool: iptables}
    - {src: rules.v6, dest: /etc/iptables/rules.v6, tool: ip6tables}

- name: Reboot if necessary
  ansible.builtin.meta: flush_handlers