diff --git a/nginx/server.sls b/nginx/server.sls index 0d6a6fe..763e928 100644 --- a/nginx/server.sls +++ b/nginx/server.sls @@ -106,6 +106,9 @@ nginx_service: - name: {{ server.service }} - require: - pkg: nginx_packages +{%- if server.service_enable is defined %} + - enable: {{ server.service_enable }} +{%- endif %} {%- set generate_dhparams = { 'enabled': False } %} {%- for site_name, site in server.get('site', {}).iteritems() %}