mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 12:07:34 +08:00
fedmsg/hub: make it dnf/yum agnostic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user