Files
role_nftables/handlers/main.yml
T
2026-09-17 11:57:38 +02:00

20 lines
403 B
YAML

---
# handlers file for nftables
- name: Restart nftables.service
ansible.builtin.systemd:
name: nftables.service
state: restarted
enabled: true
masked: false
become: true
- name: Enable 100-ip_forwarding.conf
ansible.builtin.command:
argv:
- sysctl
- -p
- "{{ nftables_ip_forwarding_path }}"
removes: "{{ nftables_ip_forwarding_path }}"
become: true