13 lines
242 B
YAML

---
- name: Install ufw
ansible.builtin.package:
name: ufw
state: present
- name: Allow SSH connection in ufw
community.general.ufw:
rule: allow
name: OpenSSH
- name: Enable ufw
community.general.ufw:
state: enabled