18 lines
402 B
YAML
18 lines
402 B
YAML
---
|
|||
|
|
- 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
|