Fix firewall ports format

This commit is contained in:
Sam A. 2022-11-22 21:22:23 +01:00
parent d53c6d41dc
commit 71cc3e2241
Signed by untrusted user: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -6,15 +6,36 @@
- name: Allow necessary ports - name: Allow necessary ports
community.general.ufw: community.general.ufw:
rule: allow rule: allow
port: "{{ item }}" port: "{{ item.port }}"
proto: "{{ item.proto }}"
loop: loop:
- "22/tcp" # Gitea SSH # Gitea SSH
- "80/tcp" # HTTP - port: 22
- "443/tcp" # HTTPS proto: "tcp"
- "389/tcp" # OpenLDAP # HTTP
- "636/tcp" # OpenLDAP - port: 80
- "25/tcp" # Email proto: "tcp"
- "465/tcp" # Email # HTTPS
- "587/tcp" # Email - port: 443
- "993/tcp" # Email proto: "tcp"
- "19022/tcp" # SSH # OpenLDAP
- port: 389
proto: "tcp"
# OpenLDAP
- port: 636
proto: "tcp"
# Email
- port: 25
proto: "tcp"
# Email
- port: 465
proto: "tcp"
# Email
- port: 587
proto: "tcp"
# Email
- port: 993
proto: "tcp"
# SSH
- port: 19022
proto: "tcp"