]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
testnode: Fix pip vars for CentOS/RHEL8 564/head
authorDavid Galloway <dgallowa@redhat.com>
Fri, 24 Apr 2020 18:20:56 +0000 (14:20 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 24 Apr 2020 18:20:56 +0000 (14:20 -0400)
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 <dgallowa@redhat.com>
roles/testnode/tasks/pip.yml

index b600914029ded3334efed2f0f315b1628a558697..8ef9c6b534dc1a748cef1839c989008e94422d35 100644 (file)
@@ -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.