diff --git a/playbooks/tox/py27.yaml b/playbooks/tox/py27.yaml index 3043c66e..f60ee78a 100644 --- a/playbooks/tox/py27.yaml +++ b/playbooks/tox/py27.yaml @@ -17,3 +17,18 @@ - python - python-dev state: present + when: ansible_facts['distribution'] != "CentOS" + - name: Install Python 2.7 for CentOS 7 + package: + name: + - python + - python-devel + state: present + when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7") + - name: Install Python 2.7 for CentOS 8 + package: + name: + - python2 + - python2-devel + state: present + when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "8")