fedmsg: fix yum conditional when run on hosts with dnf
This commit is contained in:
parent
ef41dbf956
commit
b75c829a03
1 changed files with 6 additions and 1 deletions
|
@ -15,7 +15,12 @@
|
|||
|
||||
- name: install python2 fedmsg package
|
||||
yum: pkg=fedmsg state=present
|
||||
when: "'python34-fedmsg' not in group_names"
|
||||
when: "'python34-fedmsg' not in group_names and ansible_distribution_major_version|int < 22"
|
||||
tags: fedmsg/base
|
||||
|
||||
- name: install python2 fedmsg package
|
||||
dnf: pkg=fedmsg state=present
|
||||
when: "'python34-fedmsg' not in group_names and ansible_distribution_major_version|int > 21"
|
||||
tags: fedmsg/base
|
||||
|
||||
- name: install the python34 fedmsg package (yum)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue