router/handlers/main.yaml

13 lines
250 B
YAML

---
- name: "restart iptables"
ansible.builtin.service:
name: "iptables"
state: "restarted"
when: "ipv4_enabled"
- name: "restart ip6tables"
ansible.builtin.service:
name: "ip6tables"
state: "restarted"
when: "ipv6_enabled"