roles/nginx: use boolean for use_letsencrypt instead of string "yes"

This is very confusing when you forget about how Ansible/Python is
testing conditionals. Let's use actual booleans so it's more clear.
This commit is contained in:
2016-08-17 12:42:48 +03:00
parent 60c498f5ae
commit de704a917f
3 changed files with 83 additions and 83 deletions

View File

@ -31,7 +31,7 @@
ssl_prefer_server_ciphers on;
{# OSCP stapling only works with real certs #}
{% if use_letsencrypt == "yes" or item.tls_certificate_path %}
{% if use_letsencrypt == True or item.tls_certificate_path %}
# OCSP stapling...
ssl_stapling on;
ssl_stapling_verify on;