From 1205bba8bf32a6d2ebac0ed5b677918317f0bf68 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Mon, 17 Apr 2023 18:22:59 +0100 Subject: [PATCH] ansible: fix tap2junit installation for RHEL 8 `tap2junit` 0.1.6 requires Python >=3.7. Use the installed `python3` (currently Python 3.9) rather than `/usr/libexec/platform-python` which is Python 3.6.8. --- .../tasks/partials/tap2junit/rhel8.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ansible/roles/jenkins-worker/tasks/partials/tap2junit/rhel8.yml diff --git a/ansible/roles/jenkins-worker/tasks/partials/tap2junit/rhel8.yml b/ansible/roles/jenkins-worker/tasks/partials/tap2junit/rhel8.yml new file mode 100644 index 000000000..626bed02c --- /dev/null +++ b/ansible/roles/jenkins-worker/tasks/partials/tap2junit/rhel8.yml @@ -0,0 +1,16 @@ +--- + +# +# install tap2junit from pip +# + +- name: install pip + ansible.builtin.dnf: + name: python3-pip + state: present + +- name: install tap2junit + ansible.builtin.pip: + executable: /usr/bin/pip3 + name: tap2junit=={{ tap2junit_version }} + state: present