{% 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 WSGIProcessGroup kerneltest # Apache 2.4 Require all granted # Apache 2.2 Order deny,allow Allow from all