[fix] role:ufw:add missing become:true directives [mod] role:ufw:use fully qualified names for ansible tasks
This commit is contained in:
parent
65b00c8840
commit
2ac8c9c4c3
1 changed files with 8 additions and 4 deletions
|
@ -11,7 +11,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ufw deny incoming",
|
"name": "ufw deny incoming",
|
||||||
"ufw": {
|
"become": true,
|
||||||
|
"community.general.ufw": {
|
||||||
"direction": "incoming",
|
"direction": "incoming",
|
||||||
"proto": "any",
|
"proto": "any",
|
||||||
"policy": "deny"
|
"policy": "deny"
|
||||||
|
@ -19,7 +20,8 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ufw allow outgoing",
|
"name": "ufw allow outgoing",
|
||||||
"ufw": {
|
"become": true,
|
||||||
|
"community.general.ufw": {
|
||||||
"direction": "outgoing",
|
"direction": "outgoing",
|
||||||
"proto": "any",
|
"proto": "any",
|
||||||
"policy": "allow"
|
"policy": "allow"
|
||||||
|
@ -27,14 +29,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ufw allow and rate-limit ssh",
|
"name": "ufw allow and rate-limit ssh",
|
||||||
"ufw": {
|
"become": true,
|
||||||
|
"community.general.ufw": {
|
||||||
"rule": "limit",
|
"rule": "limit",
|
||||||
"name": "ssh"
|
"name": "ssh"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "enable ufw service",
|
"name": "enable ufw service",
|
||||||
"ufw": {
|
"become": true,
|
||||||
|
"community.general.ufw": {
|
||||||
"state": "enabled"
|
"state": "enabled"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue