From 2106ececa67fc6d51d8010ea5995ca3d1da0cbbe Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Thu, 26 Feb 2026 19:01:18 +0000 Subject: [PATCH] ansible: fix `tap2junit` installation `tap2junit` requires `packaging`, which is part of `python3-setuptools`. Also install `tap2junit` into a Python venv to avoid warnings about running `pip` as the `root` user. --- ansible/roles/baselayout/vars/main.yml | 2 +- .../tasks/partials/tap2junit/fedora.yml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 ansible/roles/jenkins-worker/tasks/partials/tap2junit/fedora.yml diff --git a/ansible/roles/baselayout/vars/main.yml b/ansible/roles/baselayout/vars/main.yml index b3d217555..dda227835 100644 --- a/ansible/roles/baselayout/vars/main.yml +++ b/ansible/roles/baselayout/vars/main.yml @@ -63,7 +63,7 @@ packages: { ], fedora: [ - 'bzip2,ccache,clang,gcc-c++,git,fontconfig,sudo,make,python3-pip,rust,cargo', + 'bzip2,ccache,clang,gcc-c++,git,fontconfig,sudo,make,python3-pip,python3-setuptools,rust,cargo', ], freebsd: [ diff --git a/ansible/roles/jenkins-worker/tasks/partials/tap2junit/fedora.yml b/ansible/roles/jenkins-worker/tasks/partials/tap2junit/fedora.yml new file mode 100644 index 000000000..65191d3ce --- /dev/null +++ b/ansible/roles/jenkins-worker/tasks/partials/tap2junit/fedora.yml @@ -0,0 +1,11 @@ +--- + +# +# install tap2junit from pip +# + +- name: install tap2junit + pip: + name: tap2junit=={{ tap2junit_version }} + virtualenv: /home/{{ server_user }}/venv + virtualenv_command: python3 -m venv