15 lines
244 B
YAML
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
|