diff --git a/apache/modules.sls b/apache/modules.sls index 2b8d64f..8f49740 100644 --- a/apache/modules.sls +++ b/apache/modules.sls @@ -46,7 +46,7 @@ a2dismod -f {{ module }}: include: - apache - + {% for module in salt['pillar.get']('apache:modules:enabled', []) %} find /etc/httpd/ -name '*.conf' -type f -exec sed -i -e 's/\(^#\)\(\s*LoadModule.{{ module }}_module\)/\2/g' {} \;: cmd.run: @@ -81,7 +81,7 @@ find /etc/httpd/ -name '*.conf' -type f -exec sed -i -e 's/\(^\s*LoadModule.{{ m include: - apache - + {% for module in salt['pillar.get']('apache:modules:enabled', []) %} a2enmod {{ module }}: cmd.run: