From 2ac8c9c4c3a75b5e20f7fae4416885814b07a5fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Sat, 1 Jun 2024 13:49:11 +0200 Subject: [PATCH] [fix] role:ufw:add missing become:true directives [mod] role:ufw:use fully qualified names for ansible tasks --- roles/ufw/tasks/main.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/roles/ufw/tasks/main.json b/roles/ufw/tasks/main.json index b3ed847..003e4b6 100644 --- a/roles/ufw/tasks/main.json +++ b/roles/ufw/tasks/main.json @@ -11,7 +11,8 @@ }, { "name": "ufw deny incoming", - "ufw": { + "become": true, + "community.general.ufw": { "direction": "incoming", "proto": "any", "policy": "deny" @@ -19,7 +20,8 @@ }, { "name": "ufw allow outgoing", - "ufw": { + "become": true, + "community.general.ufw": { "direction": "outgoing", "proto": "any", "policy": "allow" @@ -27,14 +29,16 @@ }, { "name": "ufw allow and rate-limit ssh", - "ufw": { + "become": true, + "community.general.ufw": { "rule": "limit", "name": "ssh" } }, { "name": "enable ufw service", - "ufw": { + "become": true, + "community.general.ufw": { "state": "enabled" } }