Merge pull request #164 from fcrozat/suse

ensure php5 module is enabled on openSUSE / SLE
This commit is contained in:
Niels Abspoel 2017-02-06 16:54:10 +01:00 committed by GitHub
commit 68ca8eb9de

View File

@ -45,3 +45,11 @@ a2enmod php5:
- module: apache-restart
{% endif %}
{% if grains['os_family']=="Suse" %}
/etc/sysconfig/apache2:
file.replace:
- unless: grep '^APACHE_MODULES=.*php5' /etc/sysconfig/apache2
- pattern: '^APACHE_MODULES=(.*)"'
- repl: 'APACHE_MODULES=\1 php5"'
{% endif %}