ansible/roles/kerneltest/templates/kerneltest.conf
Karsten Hopp c9ed62ac32 update ansible_distribution_major_version conditionals
Signed-off-by: Karsten Hopp <karsten@redhat.com>
2020-04-24 21:34:10 +02:00

27 lines
823 B
Text

{% if ansible_distribution_major_version == '6 and ansible_distribution is 'RedHat' %}
Alias /kerneltest/static /usr/lib/python2.6/site-packages/kerneltest/static/
{% else %}
Alias /kerneltest/static /usr/lib/python2.7/site-packages/kerneltest/static/
{% endif %}
WSGIDaemonProcess kerneltest user=apache maximum-requests=1000 display-name=kerneltest processes={{wsgi_procs}} threads={{wsgi_threads}}
WSGISocketPrefix run/wsgi
WSGIRestrictStdout On
WSGIRestrictSignal Off
WSGIPythonOptimize 1
WSGIScriptAlias /kerneltest /var/www/kerneltest.wsgi
<Location />
WSGIProcessGroup kerneltest
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Location>