]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: install pip for dnf as well 779/head
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Sat, 5 Apr 2025 17:31:20 +0000 (19:31 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Sun, 6 Apr 2025 11:01:25 +0000 (13:01 +0200)
On CentOS ansible ansible_pkg_mgr is 'dnf' instead of 'yum',
but the python3-pip still needed.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
roles/testnode/tasks/pip.yml

index f2cbc4cac71303a9b2335b839b27ac2ed8b559c4..5b0d26e5ee8f6cee8696b0dc42738dc142df05b7 100644 (file)
@@ -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: