cmd.run: | cmd.run: | ||||
- name: a2enmod -f {{ module }} | - name: a2enmod -f {{ module }} | ||||
- onlyif: ls {{ apache.moddir }}/{{ module }}.load | |||||
- unless: ls {{ apache.moddir }}/{{ module }}.load | |||||
{% elif grains.os_family in ('RedHat', 'Arch') %} | {% elif grains.os_family in ('RedHat', 'Arch') %} | ||||