firewall: fix glaring errors

This commit is contained in:
dogeystamp 2023-08-27 19:36:52 -04:00
parent c6978b61ae
commit 9b4e047171
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -22,8 +22,8 @@
rule: allow
port: "{{ item.port }}"
proto: "{{ item.proto | default('tcp') }}"
state: "{{ 'enabled' if item.name in group_names else 'disabled' }}"
src: "{{ item.src | default(default_firewall_src) }}"
when: item.name in group_names
with_items:
# matrix ports
- name: "synapse"
@ -61,6 +61,9 @@
proto: any
src: "{{ local_subnet }}"
- name: Deny all ports by default
community.general.ufw:
enabled: true
- name: Enable firewall service
service: