Add UFW rules
Enable UFW and allow SSH access.
This commit is contained in:
@@ -40,6 +40,22 @@
|
||||
enabled: yes
|
||||
become: yes
|
||||
|
||||
# UFW
|
||||
- name: Ensure UFW installed
|
||||
community.general.pacman:
|
||||
name: ufw
|
||||
state: present
|
||||
become: yes
|
||||
- name: Enable UFW
|
||||
community.general.ufw:
|
||||
state: enabled
|
||||
become: yes
|
||||
- name: Allow SSH
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
name: ssh
|
||||
become: yes
|
||||
|
||||
# System Tools
|
||||
- name: Ensure grub installed
|
||||
community.general.pacman:
|
||||
|
||||
Reference in New Issue
Block a user