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:
parent
89b18357c5
commit
f2653a64f8
@ -116,12 +116,12 @@
|
|||||||
when: ceilometer_get_venv | failed or ceilometer_get_venv | skipped
|
when: ceilometer_get_venv | failed or ceilometer_get_venv | skipped
|
||||||
notify: Restart ceilometer services
|
notify: Restart ceilometer services
|
||||||
|
|
||||||
- name: CentOS remove python from path first
|
- name: Remove python from path first (CentOS, openSUSE)
|
||||||
file:
|
file:
|
||||||
path: "{{ ceilometer_bin | dirname }}/bin/python2.7"
|
path: "{{ ceilometer_bin | dirname }}/bin/python2.7"
|
||||||
state: "absent"
|
state: "absent"
|
||||||
when:
|
when:
|
||||||
- ansible_pkg_mgr in ['yum', 'dnf']
|
- ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
|
||||||
- ceilometer_get_venv | changed
|
- ceilometer_get_venv | changed
|
||||||
|
|
||||||
- name: Update virtualenv path
|
- name: Update virtualenv path
|
||||||
|
Loading…
Reference in New Issue
Block a user