Make sure that you can makedirs incase parent folders are not createdmaster
file.directory: | file.directory: | ||||
- unless: test -d {{ site.get('DocumentRoot') }} | - unless: test -d {{ site.get('DocumentRoot') }} | ||||
- name: {{ site.get('DocumentRoot') }} | - name: {{ site.get('DocumentRoot') }} | ||||
- makedirs: True | |||||
{% if grains.os_family == 'Debian' %} | {% if grains.os_family == 'Debian' %} | ||||
a2ensite {{ id }}{{ apache.confext }}: | a2ensite {{ id }}{{ apache.confext }}: |