feat: added nftables tasks
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
0ad05fedf2
commit
be57907d55
16
roles/nftables/tasks/main.yaml
Normal file
16
roles/nftables/tasks/main.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
- name: Install nftables
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: nftables
|
||||||
|
state: latest
|
||||||
|
update_cache: true
|
||||||
|
|
||||||
|
- name: Enable nftables service
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: nftables
|
||||||
|
state: started
|
||||||
|
|
||||||
|
- name: Start nftables service
|
||||||
|
ansible.builtin.service:
|
||||||
|
name: nftables
|
||||||
|
enabled: true
|
Loading…
Reference in New Issue
Block a user