Files
playbooks/roles/base/tasks/ufw.yml
Niko Kurtti 34553aa6f4 initial
2015-03-24 12:18:13 +02:00

10 lines
175 B
YAML

---
- name: Enable firewall
ufw: state=enabled policy=allow
- name: Allow tcp/22 for SSH
ufw: rule=allow port=22 proto=tcp
- name: Reject other ports
ufw: rule=reject