Skip to content

Commit

Permalink
ansible: fix tap2junit installation for RHEL 8 (#3313)
Browse files Browse the repository at this point in the history
`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: #3306
  • Loading branch information
richardlau authored Apr 19, 2023
1 parent d3449cd commit 9e1c9b1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ansible/roles/jenkins-worker/tasks/partials/tap2junit/rhel8.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9e1c9b1

Please sign in to comment.