pez-infra/ansible/roles/firewall_alpine/handlers/main.yml
Rasmus "Pez" Wejlgaard a7a71e4f87
capture nuremberg-a firewall rules in pez-infra (#15)
Add firewall_alpine role for Alpine hosts with iptables persistence
and fail2ban SSH jails. Wire it into nuremberg-a's deploy stage.

Mail ports are already exposed via Docker port mappings in the
poste-io docker-compose — this captures the surrounding iptables
and fail2ban config that was previously undocumented.

Closes PESO-96
2026-03-29 14:40:10 +01:00

9 lines
214 B
YAML

---
- name: Restore iptables
ansible.builtin.command: iptables-restore < /etc/iptables/rules-save
changed_when: true
- name: Restart fail2ban
ansible.builtin.service:
name: fail2ban
state: restarted