fix(debian): don't execute a2enmod on every run

This commit is contained in:
Benjamin Neff 2020-10-14 00:09:21 +02:00
parent c17601ee42
commit 5844322de4
No known key found for this signature in database
GPG Key ID: 971464C3F1A90194

View File

@ -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') %}