From be57907d558d838407602464496778701bc67da9 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Thu, 17 Nov 2022 10:29:52 +0100 Subject: [PATCH] feat: added nftables tasks Signed-off-by: Louis Vallat --- roles/nftables/tasks/main.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 roles/nftables/tasks/main.yaml diff --git a/roles/nftables/tasks/main.yaml b/roles/nftables/tasks/main.yaml new file mode 100644 index 0000000..8ddb0f7 --- /dev/null +++ b/roles/nftables/tasks/main.yaml @@ -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