mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-14 17:23:11 +02:00
9 lines
308 B
YAML
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
|