From 546378a730ec2101385c2b323b01344b8f35b345 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 15 Aug 2017 06:10:22 +0100 Subject: [PATCH] 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 --- tasks/swift_install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/swift_install.yml b/tasks/swift_install.yml index b4710013..e0424190 100644 --- a/tasks/swift_install.yml +++ b/tasks/swift_install.yml @@ -103,12 +103,12 @@ notify: - Restart swift services -- name: CentOS remove python from path first +- name: Remove python from path first (CentOS, openSUSE) file: path: "{{ swift_bin | dirname }}/bin/python2.7" state: "absent" when: - - ansible_pkg_mgr in ['yum', 'dnf'] + - ansible_pkg_mgr in ['yum', 'dnf', 'zypper'] - swift_get_venv | changed - name: Update virtualenv path