apache-formula/apache/mod_headers.sls

20 lines
360 B
Plaintext

{% if grains['os_family']=="Debian" %}
include:
- apache
a2enmod headers:
cmd.run:
- unless: ls /etc/apache2/mods-enabled/headers.load
- order: 255
- require:
- pkg: apache
- watch_in:
- module: apache-restart
- require_in:
- module: apache-restart
- module: apache-reload
- service: apache
{% endif %}