Fix wsgi.conf uncomment for RedHat based OS
This commit is contained in:
parent
0b37a14035
commit
c28a1097e3
@ -9,10 +9,11 @@ mod_wsgi:
|
|||||||
- require:
|
- require:
|
||||||
- pkg: apache
|
- pkg: apache
|
||||||
|
|
||||||
{% if grains.get('os_family') == 'RedHat' and salt['file.file_exists']('/etc/httpd/conf.d/wsgi.conf') %}
|
{% if grains.get('os_family') == 'RedHat' %}
|
||||||
/etc/httpd/conf.d/wsgi.conf:
|
/etc/httpd/conf.d/wsgi.conf:
|
||||||
file.uncomment:
|
file.uncomment:
|
||||||
- regex: LoadModule
|
- regex: LoadModule
|
||||||
|
- onlyif: test -f /etc/httpd/conf.d/wsgi.conf
|
||||||
- require:
|
- require:
|
||||||
- pkg: mod_wsgi
|
- pkg: mod_wsgi
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user