[fix] role:nginx
This commit is contained in:
parent
1bae250945
commit
72cec2758c
|
|
@ -31,26 +31,28 @@
|
|||
"check_mode": true,
|
||||
"community.general.ufw": {
|
||||
"state": "enabled",
|
||||
},
|
||||
"register": "ufw_enable_check"
|
||||
}
|
||||
},
|
||||
{
|
||||
"when": "not ufw_enable_check.changed",
|
||||
"name": "Allow port 80 in ufw",
|
||||
"become": true,
|
||||
"community.general.ufw": {
|
||||
"rule": "allow",
|
||||
"port": "80",
|
||||
"proto": "tcp"
|
||||
},
|
||||
"when": "not ufw_enable_check.changed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"when": "not ufw_enable_check.changed",
|
||||
"name": "Allow port 443 in ufw",
|
||||
"become": true,
|
||||
"community.general.ufw": {
|
||||
"rule": "allow",
|
||||
"port": "443",
|
||||
"proto": "tcp"
|
||||
},
|
||||
"when": "not ufw_enable_check.changed"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "restart service",
|
||||
|
|
|
|||
Loading…
Reference in a new issue