mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
---
|
|
# Configuration for the mote webapp
|
|
|
|
- name: install needed packages
|
|
yum: pkg={{ item }} state=present
|
|
with_items:
|
|
- mote
|
|
tags:
|
|
- packages
|
|
|
|
- name: replace the mote configuration file by the one with the normal user
|
|
template: src={{ item.file }}
|
|
dest="{{ item.location }}/{{ item.file }}"
|
|
owner=apache group=apache mode=0600
|
|
with_items:
|
|
- { file: config.py, location: /etc/mote }
|
|
- { file: mote.conf, location: /etc/httpd/conf.d }
|
|
- { file: mote.wsgi, location: /usr/share/mote }
|
|
tags:
|
|
- config
|
|
notify:
|
|
- restart apache
|
|
|
|
- name: apply selinux type to static files
|
|
file: >
|
|
dest=/usr/lib/python2.7/site-packages/mote/static/
|
|
setype=httpd_sys_content_t
|
|
state=directory
|
|
recurse=yes
|
|
- name: apply selinux type to meetbot files
|
|
file: >
|
|
dest=/srv/web/meetbot/
|
|
setype=httpd_sys_content_t
|
|
state=directory
|
|
recurse=yes
|
|
|
|
- name: set sebooleans so apache can use memcached
|
|
action: seboolean name=httpd_can_network_memcache
|
|
state=true
|
|
persistent=true
|
|
|
|
- name: apply selinux type to the wsgi file
|
|
file: >
|
|
dest=/usr/share/mote/mote.wsgi
|
|
setype=httpd_sys_content_t
|