ansible/roles/ufw/tasks/main.yaml
2024-09-15 14:12:48 +03:00

15 lines
244 B
YAML

- name: Install UFW
ansible.builtin.apt:
name: ufw
state: latest
update_cache: yes
- name: Allow SSH
community.general.ufw:
rule: allow
name: OpenSSH
- name: Enable Firewall
community.general.ufw:
state: enabled