ansible/roles/nftables/tasks/main.yaml
Louis Vallat 93fe54ddbc
feat: added ulogd for nftables logging
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2022-11-17 14:20:38 +01:00

23 lines
433 B
YAML

---
- name: Install nftables
ansible.builtin.apt:
name: nftables
state: latest
update_cache: true
- name: Install ulogd (for nftables logging)
ansible.builtin.apt:
name: ulogd2
state: latest
update_cache: true
- name: Enable nftables service
ansible.builtin.service:
name: nftables
enabled: true
- name: Start nftables service
ansible.builtin.service:
name: nftables
state: started