From 8211a567a261f4015866307897a5df322d1bc6bf Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Tue, 19 May 2020 19:42:15 -0400 Subject: [PATCH] this should test that pagure on el8 wants the python3 versions --- roles/pagure/fedmsg/tasks/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/pagure/fedmsg/tasks/main.yml b/roles/pagure/fedmsg/tasks/main.yml index e2168e6b18..90ca99fd1a 100644 --- a/roles/pagure/fedmsg/tasks/main.yml +++ b/roles/pagure/fedmsg/tasks/main.yml @@ -12,6 +12,20 @@ - packages - pagure - pagure/fedmsg + when: ansible_distribution_major_version|int < 8 and ansible_distribution == 'RedHat' + +- name: install needed packages + package: name={{ item }} state=present + with_items: + - fedmsg + - python3-libsemanage + - python3-psutil + tags: + - packages + - pagure + - pagure/fedmsg + when: ansible_distribution_major_version|int >= 8 and ansible_distribution == 'RedHat' + # We use setgid here so that the monitoring sockets created by fedmsg services # are accessible to the nrpe group.