nftables: Validate config before applying
This commit is contained in:
parent
a7860a0104
commit
46a15fb9ce
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
validate: "nft -c -f %s"
|
||||||
notify: Reload nftables
|
notify: Reload nftables
|
||||||
|
|
||||||
- name: Enable service
|
- name: Enable service
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue