tasks: heat_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: I628251e8729bd50035b13a11761872b23e001fc5
This commit is contained in:
Markos Chandras 2017-08-15 05:58:11 +01:00
parent ccb8cb6f8d
commit bcb70190d1

@ -100,12 +100,12 @@
when: heat_get_venv | failed or heat_get_venv | skipped
notify: Restart heat services
- name: CentOS remove python from path first
- name: Remove python from path first (CentOS, openSUSE)
file:
path: "{{ heat_bin | dirname }}/bin/python2.7"
state: "absent"
when:
- ansible_pkg_mgr in ['yum', 'dnf']
- ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
- heat_get_venv | changed
- name: Update virtualenv path