Fix the Plus Plus Service role

This commit is contained in:
Aurélien Bompard 2016-07-27 09:51:08 +00:00
parent 27798df2b7
commit 95df6625de
4 changed files with 10 additions and 5 deletions

View file

@ -0,0 +1,3 @@
---
- name: reload httpd
service: name=httpd state=reloaded

View file

@ -1,5 +1,5 @@
---
# Configuration for the mdapi webapp
# Configuration for the plus-plus-service webapp
- name: Ensure mod_wsgi is not installed since we're using python3
dnf: pkg=mod_wsgi state=absent
@ -23,14 +23,16 @@
- config
- name: Install the config files
template: src={{ item.file }}
dest={{ item.location }}/{{ item.file }}
template: src={{ item.src }}
dest={{ item.dest }}
with_items:
- { file: 'settings.py', location: /etc/plus-plus-service }
- { file: 'apache.conf', location: /etc/plus-plus-service }
- { src: 'settings.py', dest: /etc/plus-plus-service/settings.py }
- { src: 'apache.conf', dest: /etc/httpd/conf.d/plus-plus-service.conf }
tags:
- pps
- config
notify:
- reload httpd
- name: start apache service
service: name=httpd enabled=yes state=running