diff --git a/debian12-basic.yml b/debian12-basic.yml index 00cbe32..5dc9f8d 100644 --- a/debian12-basic.yml +++ b/debian12-basic.yml @@ -50,25 +50,13 @@ 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 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 \ No newline at end of file + - name: Allow everything and enable UFW + community.general.ufw: + state: enabled + policy: reject \ No newline at end of file diff --git a/debian12-docker/playbook.yml b/debian12-docker/playbook.yml index 6d14ac0..8398fdf 100644 --- a/debian12-docker/playbook.yml +++ b/debian12-docker/playbook.yml @@ -57,3 +57,15 @@ docker_login: username: kekskurse 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