This commit is contained in:
Kekskurse 2023-07-21 06:19:47 +02:00
parent f113feea5b
commit af8fb4b0b4
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4
2 changed files with 21 additions and 21 deletions

View file

@ -50,25 +50,13 @@
passno: "0" passno: "0"
state: "present" state: "present"
- name: Allow all access to tcp port 22 - name: Allow all access to tcp port 22
community.general.ufw: community.general.ufw:
rule: allow rule: allow
port: '22' port: '22'
proto: tcp proto: tcp
- name: Allow all access to tcp port 80 - name: Allow everything and enable UFW
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: community.general.ufw:
state: enabled state: enabled
policy: reject policy: reject

View file

@ -57,3 +57,15 @@
docker_login: docker_login:
username: kekskurse username: kekskurse
password: "{{ docker_kekskurse_password }}" password: "{{ docker_kekskurse_password }}"
- 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