1
0
mirror of https://git.lapiole.org/dani/ansible-roles.git synced 2025-04-28 08:03:25 +02:00
2022-04-29 11:00:10 +02:00

9 lines
297 B
YAML

---
- name: Handle Squash TM port
iptables_raw:
name: squashtm_port
state: "{{ (squashtm_src_ip | length > 0) | ternary('present','absent') }}"
rules: "-A INPUT -m state --state NEW -p tcp --dport {{ squashtm_port }} -s {{ squashtm_src_ip | join(',') }} -j ACCEPT"
tags: squashtm