Added optional ability to disable creation of /etc/nginx/sites-(available|enabled)
This commit is contained in:
parent
12f9ffdc1f
commit
c7ede18d76
@ -41,9 +41,11 @@
|
|||||||
default_user: {{ nginx_map.default_user }}
|
default_user: {{ nginx_map.default_user }}
|
||||||
default_group: {{ nginx_map.default_group }}
|
default_group: {{ nginx_map.default_group }}
|
||||||
|
|
||||||
|
{% if nginx.get('init_conf_dirs', True) %}
|
||||||
{% for dir in ('sites-enabled', 'sites-available') %}
|
{% for dir in ('sites-enabled', 'sites-available') %}
|
||||||
/etc/nginx/{{ dir }}:
|
{{ conf_dir }}/{{ dir }}:
|
||||||
file.directory:
|
file.directory:
|
||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user