swap
This commit is contained in:
parent
9b93a59188
commit
f113feea5b
1 changed files with 25 additions and 1 deletions
|
@ -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 }}
|
||||
|
@ -48,3 +49,26 @@
|
|||
dump: "0"
|
||||
passno: "0"
|
||||
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
|
Loading…
Reference in a new issue