summaryrefslogtreecommitdiffstats
path: root/roles/github2fedmsg/tasks/main.yml
blob: d6568d776abf2db28fd212a18c854f8255bbbe0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
# Configuration for the tahrir webapp

- name: install needed packages
  yum: pkg={{ item }} state=present
  with_items:
  - github2fedmsg
  - python-psycopg2
  - python-memcached
  - libsemanage-python
  tags:
  - packages
  - github2fedmsg

- name: make some directories
  file: dest="{{item}}" mode=0755 state=directory
  with_items:
  - /etc/github2fedmsg
  - /usr/share/github2fedmsg
  tags:
  - github2fedmsg

- name: copy github2fedmsg app configuration
  template: >
    src={{ item }} dest="/etc/github2fedmsg/{{ item }}"
    owner=apache group=apache mode=0600
  with_items:
  - github2fedmsg.ini
  tags:
  - config
  - github2fedmsg
  notify:
  - restart apache

- name: copy github2fedmsg wsgi script
  copy: >
    src={{ item }} dest="/usr/share/github2fedmsg/{{ item }}"
    owner=apache group=apache mode=0644
  with_items:
  - github2fedmsg.wsgi
  tags:
  - config
  - github2fedmsg
  notify:
  - restart apache

- name: copy github2fedmsg httpd config
  template: >
    src={{ item }} dest="/etc/httpd/conf.d/{{ item }}"
    owner=apache group=apache mode=0644
  with_items:
  - github2fedmsg.conf
  tags:
  - config
  - github2fedmsg
  notify:
  - restart apache

- name: hotfix - allow velruse to do stateless openid
  copy: >
    src=openid.py
    dest=/usr/lib/python2.7/site-packages/velruse/providers/openid.py
    owner=root group=root mode=0644
  tags:
  - hotfix
  - github2fedmsg
  notify:
  - restart apache

- name: ensure selinux lets httpd talk to postgres
  seboolean: name=httpd_can_network_connect_db persistent=yes state=yes
  tags:
  - selinux
  - github2fedmsg