From 5adfc0a63de8a24379be7fcb1c6b6b866829faab Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Sat, 5 Apr 2025 19:31:20 +0200 Subject: [PATCH] testnode: install pip for dnf as well On CentOS ansible ansible_pkg_mgr is 'dnf' instead of 'yum', but the python3-pip still needed. Signed-off-by: Kyr Shatskyy --- roles/testnode/tasks/pip.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/testnode/tasks/pip.yml b/roles/testnode/tasks/pip.yml index f2cbc4ca..5b0d26e5 100644 --- a/roles/testnode/tasks/pip.yml +++ b/roles/testnode/tasks/pip.yml @@ -23,7 +23,8 @@ name: "{{ pip_version }}" state: present enablerepo: epel - when: ansible_pkg_mgr == "yum" and ansible_distribution != 'Fedora' + when: (ansible_pkg_mgr == "yum" and ansible_distribution != 'Fedora') or + (ansible_pkg_mgr == "dnf" and ansible_distribution != 'Fedora') - name: Install python-pip on apt based systems. apt: -- 2.47.3