Update to 2022-02-18 16:00

This commit is contained in:
Daniel Berteaud
2022-02-18 16:00:06 +01:00
parent 67e32c9d59
commit 767adc1e83
19 changed files with 282 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
---
- name: Handle pgweb ports in the firewall
iptables_raw:
name: pgweb_port
state: "{{ (pgweb_src_ip | length > 0) | ternary('present','absent') }}"
rules: "-A INPUT -m state --state NEW -p tcp --dport {{ pgweb_port }} -s {{ pgweb_src_ip | join(',') }} -j ACCEPT"
tags: firewall,pgweb,pg