-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"AnsibleUndefinedVariable: the inline if-expression on line 9 in 'http/grpc.j2' evaluated to false and no else section was defined."} #94
Comments
Found the issue. PR coming shortly. |
thank you for the quick response, I will follow up the development of this issue. |
Can you pull from main and check if the latest PR fixed your issue? You might need to do some further tweaks to your template since there's been a few breaking changes since |
I can, but I am still testing other configuration situations. I just found a similar situation with gzip:
Seems to be related to the "proxied" line. |
That's a weirder error. Can you check which version of Jinja2 you are using? Tests for both the previous and this error pass just fine, and I've seen templates fail for other people when using older versions of Jinja2. |
Here is the version: python3-jinja2 2.10.1-2 I am also having trouble in applying a proxy: section under http_settings. It keeps getting ignored and nothing gets written to nginx.conf.
|
You might want to update to Jinja2 |
I opened a separate issue for the proxy: problem above to not spam this one. |
Having the same issue in regards of ---
nginx_config_main_template:
http_settings:
gzip:
enable: true
buffers:
number: 32
size: 16k
comp_level: 6
vary: true
proxied:
- any
types:
- "*" Error:
|
Line 27 includes the |
I did ran into that proxied issue, doing a |
Describe the bug
Can't apply configuration when the http section is enabled. I get the following error:
"AnsibleUndefinedVariable: the inline if-expression on line 9 in 'http/grpc.j2' evaluated to false and no else section was defined."}
The configuration has been copied from this example:
https://github.com/nginxinc/ansible-role-nginx-config/blob/main/molecule/default/converge.yml
To reproduce
Steps to reproduce the behavior:
Expected behavior
I expected the configuration to apply without errors
Your environment:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: