forked from data.coop/ansible
Fix firewall ports format
This commit is contained in:
parent
d53c6d41dc
commit
71cc3e2241
|
@ -6,15 +6,36 @@
|
|||
- name: Allow necessary ports
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
port: "{{ item }}"
|
||||
port: "{{ item.port }}"
|
||||
proto: "{{ item.proto }}"
|
||||
loop:
|
||||
- "22/tcp" # Gitea SSH
|
||||
- "80/tcp" # HTTP
|
||||
- "443/tcp" # HTTPS
|
||||
- "389/tcp" # OpenLDAP
|
||||
- "636/tcp" # OpenLDAP
|
||||
- "25/tcp" # Email
|
||||
- "465/tcp" # Email
|
||||
- "587/tcp" # Email
|
||||
- "993/tcp" # Email
|
||||
- "19022/tcp" # SSH
|
||||
# Gitea SSH
|
||||
- port: 22
|
||||
proto: "tcp"
|
||||
# HTTP
|
||||
- port: 80
|
||||
proto: "tcp"
|
||||
# HTTPS
|
||||
- port: 443
|
||||
proto: "tcp"
|
||||
# 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"
|
||||
|
|
Loading…
Reference in a new issue