fedmsg/hub: make it dnf/yum agnostic
This commit is contained in:
parent
fc588796e5
commit
9aef9dee97
1 changed files with 9 additions and 0 deletions
|
@ -7,6 +7,15 @@
|
||||||
- fedmsg-hub
|
- fedmsg-hub
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- 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
|
- name: fedmsg-hub service
|
||||||
service: name=fedmsg-hub state=started enabled=yes
|
service: name=fedmsg-hub state=started enabled=yes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue