From 93fe54ddbc81bf0d622a3f3b42f13904245f3293 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Thu, 17 Nov 2022 11:43:40 +0100 Subject: [PATCH] feat: added ulogd for nftables logging Signed-off-by: Louis Vallat --- basic.yaml | 2 +- roles/nftables/tasks/main.yaml | 10 ++++++++-- router.yaml | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/basic.yaml b/basic.yaml index 0f2af15..a5870cf 100644 --- a/basic.yaml +++ b/basic.yaml @@ -1,5 +1,5 @@ --- -- name: "Update/upgrade debian and install docker and misc tools." +- name: "Update/upgrade debian and install misc tools." hosts: basic roles: - system diff --git a/roles/nftables/tasks/main.yaml b/roles/nftables/tasks/main.yaml index 8ddb0f7..e25b442 100644 --- a/roles/nftables/tasks/main.yaml +++ b/roles/nftables/tasks/main.yaml @@ -5,12 +5,18 @@ 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 - state: started + enabled: true - name: Start nftables service ansible.builtin.service: name: nftables - enabled: true + state: started diff --git a/router.yaml b/router.yaml index 3d9149e..df5af38 100644 --- a/router.yaml +++ b/router.yaml @@ -1,5 +1,5 @@ --- -- name: "Update/upgrade debian and install docker and misc tools." +- name: "Update/upgrade debian and install router softwares and misc tools." hosts: router roles: - system