[fix] role:nginx

This commit is contained in:
Christian Fraß 2024-06-01 16:17:11 +02:00
parent 1bae250945
commit 72cec2758c

View file

@ -31,26 +31,28 @@
"check_mode": true,
"community.general.ufw": {
"state": "enabled",
"register": "ufw_enable_check"
}
},
"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",