tasks: horizon_install: Fix virtualenv-tools issue on openSUSE

openSUSE is also suffering from the same virtualenv-tools issue so
we need to remove the existing python-2.7 symlink.

Link: https://github.com/fireteam/virtualenv-tools/issues/5
Related-Bug: #1637509
Partial-Bug: #1644629
Change-Id: Ie3f4355eb53db563aaf5fa71d1ea9fb2ee5cfe32
(cherry picked from commit 91171e2be8)
This commit is contained in:
Markos Chandras 2017-08-15 06:00:02 +01:00
parent 7151b5a6ec
commit c7e1c7c9c4

View File

@ -142,12 +142,12 @@
delay: 2
when: horizon_optional_pip_packages | length > 0
- name: CentOS remove python from path first
- name: Remove python from path first (CentOS, openSUSE)
file:
path: "{{ horizon_bin | dirname }}/bin/python2.7"
state: "absent"
when:
- ansible_pkg_mgr in ['yum', 'dnf']
- ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
- horizon_get_venv | changed
- name: Update virtualenv path