Allow to use load_module without including external files

This commit is contained in:
Konrad Mosoń 2018-05-08 19:07:20 +02:00 committed by Konrad Mosoń
parent 4b3d5bf624
commit f16d800c83
No known key found for this signature in database
GPG Key ID: 983AC5250721248B

View File

@ -32,6 +32,10 @@
# #
# This file is managed by Salt. # This file is managed by Salt.
{% if 'load_module' in config.keys() %}
{{ nginx_block(config.pop('load_module'), 'load_module') }}
{%- endif -%}
{% if 'include' in config.keys() %} {% if 'include' in config.keys() %}
{{ nginx_block(config.pop('include'), 'include') }} {{ nginx_block(config.pop('include'), 'include') }}
{%- endif -%} {%- endif -%}