From e85e2cfac91ef94f6e145d25f6cba749048fab6e Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 15 Aug 2017 05:58:11 +0100 Subject: [PATCH] tasks: heat_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: I628251e8729bd50035b13a11761872b23e001fc5 (cherry picked from commit bcb70190d17c54127187556662b11a4734e55272) --- tasks/heat_install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/heat_install.yml b/tasks/heat_install.yml index 23d5b45..e0e0c45 100644 --- a/tasks/heat_install.yml +++ b/tasks/heat_install.yml @@ -100,12 +100,12 @@ when: heat_get_venv | failed or heat_get_venv | skipped notify: Restart heat services -- name: CentOS remove python from path first +- name: Remove python from path first (CentOS, openSUSE) file: path: "{{ heat_bin | dirname }}/bin/python2.7" state: "absent" when: - - ansible_pkg_mgr in ['yum', 'dnf'] + - ansible_pkg_mgr in ['yum', 'dnf', 'zypper'] - heat_get_venv | changed - name: Update virtualenv path