From 91171e2be847beea02b6cfa9c27dc21e86e37a33 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 15 Aug 2017 06:00:02 +0100 Subject: [PATCH] tasks: horizon_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: Ie3f4355eb53db563aaf5fa71d1ea9fb2ee5cfe32 --- tasks/horizon_install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/horizon_install.yml b/tasks/horizon_install.yml index a1e6370d..2791f5e0 100644 --- a/tasks/horizon_install.yml +++ b/tasks/horizon_install.yml @@ -142,12 +142,12 @@ delay: 2 when: horizon_optional_pip_packages | length > 0 -- name: CentOS remove python from path first +- name: Remove python from path first (CentOS, openSUSE) file: path: "{{ horizon_bin | dirname }}/bin/python2.7" state: "absent" when: - - ansible_pkg_mgr in ['yum', 'dnf'] + - ansible_pkg_mgr in ['yum', 'dnf', 'zypper'] - horizon_get_venv | changed - name: Update virtualenv path