From a6f93be5c1e5441788d3c7a1c5900aefafcbd4fe Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 16 Aug 2017 12:33:57 +0100 Subject: [PATCH] tasks: glance_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: Iff9ddc29903a278dac7ab941fe7bd5bae1702bb7 --- tasks/glance_install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/glance_install.yml b/tasks/glance_install.yml index 5a03c0cd..2df15e69 100644 --- a/tasks/glance_install.yml +++ b/tasks/glance_install.yml @@ -101,12 +101,12 @@ notify: - Restart glance services -- name: CentOS remove python from path first +- name: Remove python from path first (CentOS, openSUSE) file: path: "{{ glance_bin | dirname }}/bin/python2.7" state: "absent" when: - - ansible_pkg_mgr in ['yum', 'dnf'] + - ansible_pkg_mgr in ['yum', 'dnf', 'zypper'] - glance_get_venv | changed - name: Update virtualenv path