allow absence of DocumentRoot
DocumentRoot is useless for a plain redirect or proxy vhost, no need to force creating the directory. Signed-off-by: Julien Cristau <julien.cristau@logilab.fr>
This commit is contained in:
parent
9bd6873d27
commit
9be8ade5aa
@ -21,11 +21,13 @@ include:
|
||||
- watch_in:
|
||||
- module: apache-reload
|
||||
|
||||
{% if site.get('DocumentRoot') != False %}
|
||||
{{ id }}-documentroot:
|
||||
file.directory:
|
||||
- unless: test -d {{ documentroot }}
|
||||
- name: {{ documentroot }}
|
||||
- makedirs: True
|
||||
{% endif %}
|
||||
|
||||
{% if grains.os_family == 'Debian' %}
|
||||
{% if site.get('enabled') %}
|
||||
|
Loading…
Reference in New Issue
Block a user