tasks: cinder_install: Fix virtualenv-tools issue on openSUSE
This is similar to Ic6c005bc55018898830bfc937829c6fade72e670 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: Ib1b4313071c2442d1c320fb2eab5f4b072078960
This commit is contained in:
parent
0d0527e8f8
commit
e1fd2e40e1
@ -99,12 +99,12 @@
|
||||
when: cinder_get_venv | failed or cinder_get_venv | skipped
|
||||
notify: Restart cinder services
|
||||
|
||||
- name: CentOS remove python from path first
|
||||
- name: Remove python from path first (CentOS, openSUSE)
|
||||
file:
|
||||
path: "{{ cinder_bin | dirname }}/bin/python2.7"
|
||||
state: "absent"
|
||||
when:
|
||||
- ansible_pkg_mgr in ['yum', 'dnf']
|
||||
- ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
|
||||
- cinder_get_venv | changed
|
||||
|
||||
- name: Update virtualenv path
|
||||
|
Loading…
x
Reference in New Issue
Block a user