summaryrefslogtreecommitdiffstats
path: root/roles/mbs/common/tasks/main.yml
blob: a2518479c9ade5b6a917cf939e5429150f47d097 (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
---
# Common configuration for the Module Build Service (MBS) pieces

- name: install needed packages
  yum: pkg={{ item }} state=present
  with_items:
  - module-build-service
  - python-psycopg2
  - libsemanage-python
  - python-memcached
  notify:
  - restart apache
  - restart fedmsg-hub
  tags:
  - mbs
  - mbs/common

- name: copy app configuration
  template: >
    src=config.py dest=/etc/module-build-service/config.py
    owner=root group=fedmsg mode=0640
  notify:
  - restart apache
  - restart fedmsg-hub
  tags:
  - mbs
  - mbs/common

- name: copy client secrets
  template: >
    src=client_secrets.json.{{env}} dest=/etc/module-build-service/client_secrets.json
    owner=root group=apache mode=0640
  when: inventory_hostname.startswith('mbs-web')
  notify:
  - restart apache
  tags:
  - mbs
  - mbs/common