Closed josephbisaillon closed 6 years ago
"- |" and {} isn't managed in nginx_http_params :(
It will work if you place map {}
inside nginx_configs
:
nginx_configs:
upgrade:
- map $http_upgrade $connection_upgrade {
default update;
'' close;
}
We may need to simplify, we can have some confusion if we need to use nginx_http_params
or nginx_configs
.
Ah, and it gets added to/conf.d/upgrade.conf
I think that works. Thanks!
Here some solution to this issue. Not sure if within the global design of this role, but this fix works on our setup, where we also wanted a map {}
block on our http params.
https://github.com/jdauphant/ansible-role-nginx/pull/183
Not sure if this there is something wrong with my script or something wrong with the generation. But I'm hoping someone can help me figure out where a rogue ';' is coming from.
Here is the generated nginx.conf