tasks: ironic_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: I18d42e3ef0f6eca8e14128ad4fc8c3c8c46926e5
This commit is contained in:
parent
c4506a6aac
commit
f40e6a8e01
@ -100,12 +100,12 @@
|
||||
when: ironic_get_venv | failed or ironic_get_venv | skipped
|
||||
notify: Restart ironic services
|
||||
|
||||
- name: CentOS remove python from path first
|
||||
- name: Remove python from path first (CentOS, openSUSE)
|
||||
file:
|
||||
path: "{{ ironic_bin | dirname }}/bin/python2.7"
|
||||
state: "absent"
|
||||
when:
|
||||
- ansible_pkg_mgr == 'yum'
|
||||
- ansible_pkg_mgr in ['yum', 'zypper']
|
||||
- ironic_get_venv | changed
|
||||
|
||||
- name: Update virtualenv path
|
||||
|
Loading…
x
Reference in New Issue
Block a user