ansible/roles/ufw/tasks/main.yaml

15 lines
244 B
YAML
Raw Permalink Normal View History

2024-09-15 14:12:48 +03:00
- 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