diff --git a/apache/config/modules/install.sls b/apache/config/modules/install.sls index a3a6734..9cc5273 100644 --- a/apache/config/modules/install.sls +++ b/apache/config/modules/install.sls @@ -18,7 +18,7 @@ apache-config-modules-{{ module }}-enable: cmd.run: - name: a2enmod -f {{ module }} - - onlyif: ls {{ apache.moddir }}/{{ module }}.load + - unless: ls {{ apache.moddir }}/{{ module }}.load {% elif grains.os_family in ('RedHat', 'Arch') %}