ansible-role-coller/tasks/manage-iptables.yml
Julien Riou cc2db9930b
feat: First release
Signed-off-by: Julien Riou <julien@riou.xyz>
2025-08-22 19:31:43 +02: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