apache-formula/apache/no_default_vhost.sls
2016-05-18 17:08:22 +02:00

17 lines
320 B
Plaintext

{% if grains['os_family']=="Debian" %}
{% from "apache/map.jinja" import apache with context %}
include:
- apache
a2dissite 000-default.conf:
cmd.run:
- unless: test ! -f /etc/apache2/sites-enabled/000-default.conf
- require:
- pkg: apache
- watch_in:
- module: apache-reload
{% endif %}