mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-02 14:30:45 +08:00
70 lines
1.4 KiB
YAML
70 lines
1.4 KiB
YAML
---
|
|
# 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: kill development config
|
|
file: path=/etc/fedmsg.d/module_build_service.py state=absent
|
|
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 fedmsg configuration
|
|
template: >
|
|
src=mbs-fedmsg.py dest=/etc/fedmsg.d/mbs-fedmsg.py
|
|
owner=root group=fedmsg mode=0644
|
|
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=fedmsg mode=0640
|
|
when: inventory_hostname.startswith('mbs-frontend')
|
|
notify:
|
|
- restart apache
|
|
tags:
|
|
- mbs
|
|
- mbs/common
|
|
|
|
- name: copy pdc client config file
|
|
copy: >
|
|
src=fedora.json.{{env}} dest=/etc/pdc.d/fedora.json
|
|
owner=root group=root mode=0644
|
|
notify:
|
|
- restart apache
|
|
- restart fedmsg-hub
|
|
tags:
|
|
- mbs
|
|
- mbs/common
|