This commit is contained in:
Kekskurse 2023-07-21 06:18:56 +02:00
parent 9b93a59188
commit f113feea5b
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4

View file

@ -16,6 +16,7 @@
pkg:
- htop
- unp
- ufw
- name: Create swap file
command: dd if=/dev/zero of={{ swapfile_path }} bs=1M count={{ swapfile_size }}
@ -47,4 +48,27 @@
opts: "sw,nofail"
dump: "0"
passno: "0"
state: "present"
state: "present"
- name: Allow all access to tcp port 22
community.general.ufw:
rule: allow
port: '22'
proto: tcp
- name: Allow all access to tcp port 80
community.general.ufw:
rule: allow
port: '80'
proto: tcp
- name: Allow all access to tcp port 443
community.general.ufw:
rule: allow
port: '443'
proto: tcp
- name: Allow everything and enable UFW
community.general.ufw:
state: enabled
policy: reject