[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, "check_mode": true,
"community.general.ufw": { "community.general.ufw": {
"state": "enabled", "state": "enabled",
},
"register": "ufw_enable_check" "register": "ufw_enable_check"
}
}, },
{ {
"when": "not ufw_enable_check.changed",
"name": "Allow port 80 in ufw", "name": "Allow port 80 in ufw",
"become": true,
"community.general.ufw": { "community.general.ufw": {
"rule": "allow", "rule": "allow",
"port": "80", "port": "80",
"proto": "tcp" "proto": "tcp"
}, }
"when": "not ufw_enable_check.changed"
}, },
{ {
"when": "not ufw_enable_check.changed",
"name": "Allow port 443 in ufw", "name": "Allow port 443 in ufw",
"become": true,
"community.general.ufw": { "community.general.ufw": {
"rule": "allow", "rule": "allow",
"port": "443", "port": "443",
"proto": "tcp" "proto": "tcp"
}, }
"when": "not ufw_enable_check.changed"
}, },
{ {
"name": "restart service", "name": "restart service",