Add the ufw firewall

This commit is contained in:
2022-05-27 16:29:27 -04:00
parent d7838563a1
commit 45465ad26b
4 changed files with 42 additions and 0 deletions

View File

@@ -32,3 +32,10 @@
name: postgresql
state: restarted
when: postgresql_config.changed
- name: Allow database connections from Docker
ufw:
rule: allow
port: "5432"
proto: tcp
src: "172.16.0.0/12"