diff options
| author | Adam Williamson <awilliam@redhat.com> | 2016-03-08 14:00:47 -0800 |
|---|---|---|
| committer | Adam Williamson <awilliam@redhat.com> | 2016-03-08 14:00:47 -0800 |
| commit | 9aef9dee97aa2417bca3d3166f2bf446b16ea3bb (patch) | |
| tree | f74d5fa5a804c2892ead6765f0354c40a20c3de8 /roles/fedmsg | |
| parent | fc588796e5fc98234f6ea07fc6319a303a2b99f4 (diff) | |
fedmsg/hub: make it dnf/yum agnostic
Diffstat (limited to 'roles/fedmsg')
| -rw-r--r-- | roles/fedmsg/hub/tasks/main.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/fedmsg/hub/tasks/main.yml b/roles/fedmsg/hub/tasks/main.yml index c87a4c537..a680598b6 100644 --- a/roles/fedmsg/hub/tasks/main.yml +++ b/roles/fedmsg/hub/tasks/main.yml @@ -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 |
