From 0393115a9ceaf622141172cb0b664dab4395510f Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Thu, 7 May 2015 09:03:30 +0000 Subject: [PATCH] Install custom koschei httpd config --- roles/koschei/tasks/main.yml | 10 ++++++++++ roles/koschei/templates/httpd.conf.j2 | 15 +++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 roles/koschei/templates/httpd.conf.j2 diff --git a/roles/koschei/tasks/main.yml b/roles/koschei/tasks/main.yml index 478920ac30..e59b0f9902 100644 --- a/roles/koschei/tasks/main.yml +++ b/roles/koschei/tasks/main.yml @@ -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: diff --git a/roles/koschei/templates/httpd.conf.j2 b/roles/koschei/templates/httpd.conf.j2 new file mode 100644 index 0000000000..138e1c3c5c --- /dev/null +++ b/roles/koschei/templates/httpd.conf.j2 @@ -0,0 +1,15 @@ + + 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/ + + + WSGIProcessGroup koschei + WSGIApplicationGroup %{GLOBAL} + Options All + AllowOverride All + Require all granted + +