From 9e1c9b1f714d06f427976706eb984645ed99cad3 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Wed, 19 Apr 2023 16:03:31 +0000 Subject: [PATCH] ansible: fix tap2junit installation for RHEL 8 (#3313) `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. Fixes: https://github.com/nodejs/build/issues/3306 --- .../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