diff --git a/roles/nginx/templates/site.j2 b/roles/nginx/templates/site.j2 index 14e1d94..1176a88 100644 --- a/roles/nginx/templates/site.j2 +++ b/roles/nginx/templates/site.j2 @@ -4,7 +4,7 @@ server { {% for key,value in item.server|dictsort if key != 'file_name' %} {{ key }} {{ value }}; -{% if nginx_separate_logs_per_site == True %} +{% if nginx_separate_logs_per_site|bool %} access_log {{ nginx_log_dir }}/{{ item.server.server_name }}-{{ nginx_access_log_name }}; error_log {{ nginx_log_dir }}/{{ item.server.server_name }}-{{ nginx_error_log_name }}; {% endif %}