tasks: swift_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: I9011007d949ba4848c4e767b6cfab42e10eb1128
This commit is contained in:
Markos Chandras 2017-08-15 06:10:22 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 3ad1be916f
commit 546378a730

View File

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