From: Kyr Shatskyy Date: Sat, 5 Apr 2025 17:31:20 +0000 (+0200) Subject: testnode: install pip for dnf as well X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F779%2Fhead;p=ceph-cm-ansible.git 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 --- 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: