Get started on the anitya roles for frontend and backend

This commit is contained in:
Pierre-Yves Chibon 2014-09-29 10:26:52 +02:00
parent 68ffb83886
commit c5e7536b4b
7 changed files with 201 additions and 0 deletions

View file

@ -0,0 +1,37 @@
---
# Configuration for the anitya webapp
- name: clean yum metadata
command: yum clean all
tags:
- packages
- name: install needed packages
yum: pkg={{ item }} state=installed
with_items:
- anitya
- python-psycopg2
- python-memcached
- libsemanage-python
- httpd
tags:
- packages
- name: Install all the configuration file of anitya
template: src={{ item.file }}
dest={{ item.location }}/{{ item.file }}
owner=apache group=apache mode=0600
with_items:
- { file: anitya.cfg, location: /etc/anitya }
- { file: anitya.conf, location: /etc/httpd/conf.d }
- { file: anitya.wsgi, location: /var/www/, dest: anitya.wsgi }
tags:
- config
notify:
- restart apache
- name: set sebooleans so anitya can talk to the db
action: seboolean name=httpd_can_network_connect_db
state=true
persistent=true