Fix the Plus Plus Service role
This commit is contained in:
parent
27798df2b7
commit
95df6625de
4 changed files with 10 additions and 5 deletions
3
roles/plus-plus-service/handlers/main.yml
Normal file
3
roles/plus-plus-service/handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: reload httpd
|
||||
service: name=httpd state=reloaded
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue