init
This commit is contained in:
12
ansible/roles/harden/nftables/handlers/main.yml
Normal file
12
ansible/roles/harden/nftables/handlers/main.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: validate nftables config
|
||||
ansible.builtin.command:
|
||||
cmd: nft -c -f /etc/nftables.conf
|
||||
listen: apply nftables
|
||||
changed_when: false
|
||||
|
||||
- name: reload nftables
|
||||
ansible.builtin.systemd:
|
||||
name: nftables
|
||||
state: reloaded
|
||||
listen: apply nftables
|
||||
Reference in New Issue
Block a user