Skip to content

Commit 5adfc0a

Browse files
author
Kyr Shatskyy
committed
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 <kyrylo.shatskyy@clyso.com>
1 parent 2561351 commit 5adfc0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roles/testnode/tasks/pip.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
name: "{{ pip_version }}"
2424
state: present
2525
enablerepo: epel
26-
when: ansible_pkg_mgr == "yum" and ansible_distribution != 'Fedora'
26+
when: (ansible_pkg_mgr == "yum" and ansible_distribution != 'Fedora') or
27+
(ansible_pkg_mgr == "dnf" and ansible_distribution != 'Fedora')
2728

2829
- name: Install python-pip on apt based systems.
2930
apt:

0 commit comments

Comments
 (0)