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>
# 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.