Install custom koschei httpd config
This commit is contained in:
parent
5ea74f94ea
commit
0393115a9c
2 changed files with 25 additions and 0 deletions
|
@ -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:
|
||||
|
|
15
roles/koschei/templates/httpd.conf.j2
Normal file
15
roles/koschei/templates/httpd.conf.j2
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue