Beginning-Ansible-Concepts-.../chapter10/roles/firewall/tasks/main.yml
2022-04-23 08:57:49 +01:00

15 lines
217 B
YAML

---
- name: Firewall - Allow SSH connections
ufw:
rule: allow
name: OpenSSH
tags:
- firewall
- name: Firewall - Deny everything else
ufw:
state: enabled
policy: deny
tags:
- firewall