summaryrefslogtreecommitdiffstats
path: root/roles/bugyou/bugyou-plugins/tasks/main.yml
blob: 0ab16a9fd6cd1999a50bdd4352ec69c881792057 (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
---
# Configuration for Bugyou Plugins

- name: install needed packages for bugyou_plugins
  yum: pkg={{ item }} state=present enablerepo=epel-testing
  with_items:
  - python-libpagure
  - bugyou_plugins
  - redis
  notify:
  - restart fedmsg-hub
  tags:
  - bugyou
  - bugyou/plugins

- name: copy bugyou plugins configuration files
  template: >
    src={{ item }}
    dest=/etc/bugyou/{{ item }}
    owner=root
    group=fedmsg
    mode=0640
  with_items:
  - bugyou_plugins.cfg
  - bugyou_services.cfg
  notify:
  - restart fedmsg-hub
  tags:
  - bugyou
  - bugyou/plugins

- name: start the bugyou-cntrl
  service: name=bugyou-cntrl state=started
  tags:
  - bugyou
  - bugyou/plugins
  when: env == "production"