summaryrefslogtreecommitdiff
path: root/ansible/roles/firewalled/tasks/main.yml
blob: 147e2bc48cb3ef9b40a3f3698a5fcd67697dbcfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- name: install ufw
  apt: name=ufw state=present

- name: enable all traffic from libvirt VMs
  ufw:
    direction: in
    interface: virbr0
    rule: allow

- name: disable ufw logging
  ufw:
    logging: 'off'

- name: enable ufw
  ufw: state=enabled