Files
ansible-collection/roles/nftables/handlers/main.yml
T

18 lines
402 B
YAML
Raw Normal View History

2026-10-02 21:34:01 +04:00
---
- name: check nftables config
ansible.builtin.command: nft -c -f /etc/nftables.conf
changed_when: false
listen: restart nftables
- name: enable and start nftables
ansible.builtin.systemd:
name: nftables
state: started
enabled: true
listen: restart nftables
- name: reload nftables
ansible.builtin.systemd:
name: nftables
state: reloaded
listen: restart nftables