fedmsg/hub: make it dnf/yum agnostic

This commit is contained in:
Adam Williamson 2016-03-08 14:00:47 -08:00
parent fc588796e5
commit 9aef9dee97

View file

@ -7,6 +7,15 @@
- fedmsg-hub
tags:
- packages
when: ansible_distribution_major_version|int < 22
- name: install needed packages
dnf: pkg={{ item }} state=present
with_items:
- fedmsg-hub
tags:
- packages
when: ansible_distribution_major_version|int > 21
- name: fedmsg-hub service
service: name=fedmsg-hub state=started enabled=yes