tasks: ceilometer_install: Fix virtualenv-tools issue on openSUSE

This is similar to I101fe7082cac887dc4299a0f5ec92bdce626bb79

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: I780960418ff9da7cac2f8716e88d2d8fb7bdb1c6
This commit is contained in:
Markos Chandras 2017-08-14 15:47:20 +01:00
parent 89b18357c5
commit f2653a64f8
1 changed files with 2 additions and 2 deletions

View File

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