tasks: aodh_install.yml: Fix virtualenv-tools issue on openSUSE

This is similar to Id7a1d25732de7d6c9001a5ef3bcce7ae02da5350
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: I1cf438ad20758ea386db1df9cf683952c4215799
This commit is contained in:
Markos Chandras 2017-08-14 15:39:00 +01:00
parent 597fe05c53
commit fbff0797b2
1 changed files with 2 additions and 2 deletions

View File

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