fedmsg/hub: simplify the logic when install fedmsg-hub

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2021-05-06 13:57:25 +02:00
parent a372c6b119
commit 9d4623b8f8

View file

@ -1,17 +1,11 @@
---
# Setup a fedmsg-hub
- name: install needed packages
- name: install needed packages - py2
package: name=fedmsg-hub state=present
tags:
- packages
when: "'python34_fedmsg' not in group_names and ansible_distribution_major_version|int < 22"
- name: install needed packages
dnf: pkg=fedmsg-hub state=present
tags:
- packages
when: "'python34_fedmsg' not in group_names and ansible_distribution_major_version|int > 21"
when: "'python34_fedmsg' not in group_names"
- name: install the python34 fedmsg package (yum)
package: name=python34-fedmsg-core state=present