basic tasks for mirrorlist-server and mod_wsgi

This commit is contained in:
Seth Vidal 2013-06-04 20:06:14 +00:00
parent 021cbca730
commit e6d2e975a6
4 changed files with 61 additions and 0 deletions

30
tasks/mirrorlist.yml Normal file
View file

@ -0,0 +1,30 @@
---
# tasklist for setting up the mirrorlist app components
# install supervisor
# install mirrormanager
- name: install supervisor and mirrormanager
yum: pkg=$item state=installed
with_items:
- supervisor
- mirrormanager
tags:
- packages
# create mirrormanager user
- name: add mirrormanager user - uid 441
user: name=mirrormanager uid=441 state=present home=/home/mirrormanager createhome=yes system=yes
# mirrormanager user ssh key(s)
- name: add authorized_keys for mirrormanager
authorized_key: key=$files/mirrorlist/mm-authorized_key user=mirrormanager state=present
# install mirrorlist-server.conf apache config
- name: mirrorlist-server apache conf
copy: src=$files/mirrorlist/mirrorlist-server.conf dest=/etc/httpd/conf.d/mirrorlist-server.conf
notify:
- restart apache
tags:
- config
# selinux policy - mirrormanager - put in place - for the sockfile
#

16
tasks/mod_wsgi.yml Normal file
View file

@ -0,0 +1,16 @@
---
# install mod_wsgi
- name: install mod_wsgi
yum: name=mod_wsgi state=installed
tags:
- packages
- name: wsgi.conf
copy: src=$files/mod_wsgi/wsgi.conf dest=/etc/httpd/conf.d/wsgi.conf
notify:
- restart apache
tags:
- config
# hotfix: hash_randomization? - to httpd?