hac/ansible/roles/ufw/tasks/main.yml

15 lines
224 B
YAML
Raw Permalink Normal View History

---
- 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