From: David Galloway Date: Fri, 24 Apr 2020 18:20:56 +0000 (-0400) Subject: testnode: Fix pip vars for CentOS/RHEL8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=eee9339d67d5b7b760491824f5babf269f10da2a;p=ceph-cm-ansible.git testnode: Fix pip vars for CentOS/RHEL8 Apparently ansible is smart enough to figure this out on CentOS/RHEL8 (python3 distros) but not Ubuntu Focal. So when I manually set the vars for a python3 distro and only included Fossa, it broke CentOS8. Signed-off-by: David Galloway --- diff --git a/roles/testnode/tasks/pip.yml b/roles/testnode/tasks/pip.yml index b6009140..8ef9c6b5 100644 --- a/roles/testnode/tasks/pip.yml +++ b/roles/testnode/tasks/pip.yml @@ -14,7 +14,8 @@ # setuptools despite this default *and* giving you the option to set the executable to pip3. # For some reason, reminding ansible this is a python3 host here makes the pip module work. ansible_python_interpreter: /usr/bin/python3 - when: (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 20) + when: (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 20) or + (ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 8) # python-pip installed during packages task on Fedora since epel doesn't exist - name: Install python-pip on rpm based systems.