ensure php5 module is enabled on openSUSE / SLE

This commit is contained in:
Frederic Crozat 2017-01-22 22:50:33 +01:00
parent 936f20b559
commit af0c009f7b

View File

@ -33,3 +33,11 @@ a2enmod php5:
{% endif %}
{% 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 %}