ansible/roles/coller/tasks/manage-iptables.yml
Julien Riou f418990e84
All checks were successful
/ ansible-docsmith (push) Successful in 41s
Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
2026-03-23 10:53:38 +01:00

16 lines
355 B
YAML

---
- name: Install packages
ansible.builtin.package:
name: netfilter-persistent
- name: Allow with iptables
ansible.builtin.iptables:
chain: INPUT
protocol: tcp
source: "{{ item }}"
destination_ports:
- "{{ coller_port }}"
jump: ACCEPT
comment: coller
loop: "{{ coller_allowed_sources }}"
notify: Save iptables