From eee9339d67d5b7b760491824f5babf269f10da2a Mon Sep 17 00:00:00 2001 From: David Galloway Date: Fri, 24 Apr 2020 14:20:56 -0400 Subject: [PATCH] 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 --- roles/testnode/tasks/pip.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.47.3