hac/ansible/roles/ufw/tasks/main.yml
Ada f5c29bad3f
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add UFW firewall for debian based distro
2024-04-17 11:30:18 +02:00

14 lines
224 B
YAML

---
- name: Install UFW
ansible.builtin.apt:
name: ufw
- name: Allow 22/tcp (SSH)
community.general.ufw:
rule: allow
port: "22"
proto: tcp
- name: Enable UFW
community.general.ufw:
state: enabled