1
0
mirror of https://git.lapiole.org/dani/ansible-roles.git synced 2025-04-27 23:53:18 +02:00
2021-12-01 19:13:34 +01:00

9 lines
322 B
YAML

---
- name: Handle miniflux port in the firewall
iptables_raw:
name: miniflux_port
state: "{{ (miniflux_src_ip | length > 0) | ternary('present','absent') }}"
rules: "-A INPUT -m state --state NEW -p tcp --dport {{ miniflux_port }} -s {{ miniflux_src_ip | join(',') }} -j ACCEPT"
tags: firewall,miniflux