Merge pull request #81 from jcristau/no-documentroot
allow absence of DocumentRoot
This commit is contained in:
commit
92cc127bfe
@ -21,11 +21,13 @@ include:
|
|||||||
- watch_in:
|
- watch_in:
|
||||||
- module: apache-reload
|
- module: apache-reload
|
||||||
|
|
||||||
|
{% if site.get('DocumentRoot') != False %}
|
||||||
{{ id }}-documentroot:
|
{{ id }}-documentroot:
|
||||||
file.directory:
|
file.directory:
|
||||||
- unless: test -d {{ documentroot }}
|
- unless: test -d {{ documentroot }}
|
||||||
- name: {{ documentroot }}
|
- name: {{ documentroot }}
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if grains.os_family == 'Debian' %}
|
{% if grains.os_family == 'Debian' %}
|
||||||
{% if site.get('enabled') %}
|
{% if site.get('enabled') %}
|
||||||
|
Loading…
Reference in New Issue
Block a user