1
0
mirror of https://git.lapiole.org/dani/ansible-roles.git synced 2025-04-26 23:23:22 +02:00
2022-02-18 16:00:06 +01:00

9 lines
308 B
YAML

---
- 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