Files
fedora-infra_ansible/roles/pdc/backend/tasks/main.yml
2019-06-25 01:35:14 +00:00

36 lines
831 B
YAML

---
# Configuration for the pdc-updater backend consumer
- name: remove the old pdc-updater repo
file: dest=/etc/yum.repos.d/ralph-pdc-updater-epel-7.repo state=absent
tags: pdc
- name: install needed packages
package: name={{ item }} state=present
with_items:
- pdc-updater
tags: pdc
- name: copy database configuration
template: >
src={{ item }} dest=/etc/fedmsg.d/{{ item }}
owner=fedmsg group=fedmsg mode=0600
with_items:
- pdcupdater.py
notify: restart fedmsg-hub
tags: pdc
- name: copy client tool configuration
template: >
src={{ item }} dest=/etc/pdc.d/{{item}}
owner=fedmsg group=fedmsg mode=0600
with_items:
- fedora.json
tags: pdc
- name: setup cron for a daily audit script
copy: src=pdc-audit.cron dest=/etc/cron.d/pdc-audit.cron mode=0644
tags:
- pdc
- cron