Install custom koschei httpd config

This commit is contained in:
Mikolaj Izdebski 2015-05-07 09:03:30 +00:00
parent 5ea74f94ea
commit 0393115a9c
2 changed files with 25 additions and 0 deletions

View file

@ -56,6 +56,16 @@
- koschei
- config
- name: install httpd config file
template: >
src="httpd.conf"
dest="/etc/httpd/conf.d/koschei.conf"
notify:
- restart httpd
tags:
- koschei
- config
- name: enable services to start on boot
action: service name={{ item }} state=running enabled=true
with_items:

View file

@ -0,0 +1,15 @@
<VirtualHost *>
ServerName {{ ansible_fqdn }}
WSGIDaemonProcess koschei user=koschei group=koschei threads=5 home=/usr/share/koschei
WSGIScriptAlias /koschei /usr/share/koschei/koschei.wsgi
Alias /koschei/static /usr/share/koschei/static/
<Directory /usr/share/koschei>
WSGIProcessGroup koschei
WSGIApplicationGroup %{GLOBAL}
Options All
AllowOverride All
Require all granted
</Directory>
</VirtualHost>