mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 19:11:24 +08:00
44 lines
935 B
YAML
44 lines
935 B
YAML
---
|
|
# Configuration for the notifications consumer
|
|
|
|
- name: install needed packages
|
|
package: name={{ item }} state=present
|
|
with_items:
|
|
- statscache-consumer
|
|
- statscache-plugins
|
|
- python-psycopg2
|
|
- libsemanage-python
|
|
tags:
|
|
- notifs
|
|
- notifs/backend
|
|
|
|
- name: copy database configuration
|
|
template: >
|
|
src={{ item }} dest=/etc/fedmsg.d/{{ item }}
|
|
owner=fedmsg group=fedmsg mode=0600
|
|
with_items:
|
|
- statscache.py
|
|
notify:
|
|
- restart fedmsg-hub
|
|
tags:
|
|
- notifs
|
|
- notifs/backend
|
|
|
|
- name: ensure we have a dir to copy shared config to.
|
|
file: >
|
|
dest=/usr/share/statscache/ state=directory
|
|
owner=root group=root mode=0755
|
|
tags:
|
|
- notifs
|
|
- notifs/backend
|
|
|
|
- name: copy the alembic configuration for DBAs
|
|
template: >
|
|
src=alembic.ini dest=/usr/share/statscache/alembic.ini
|
|
owner=root group=sysadmin-dba mode=0660
|
|
notify:
|
|
- restart fedmsg-hub
|
|
tags:
|
|
- notifs
|
|
- notifs/backend
|