[fix] role:ufw
This commit is contained in:
parent
643ec848f0
commit
d515cc6cec
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue