From f40e6a8e016711967395fd85a588a3cbd0227430 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 15 Aug 2017 06:03:46 +0100 Subject: [PATCH] tasks: ironic_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: I18d42e3ef0f6eca8e14128ad4fc8c3c8c46926e5 --- tasks/ironic_install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/ironic_install.yml b/tasks/ironic_install.yml index 4cb6532d..647e0df5 100644 --- a/tasks/ironic_install.yml +++ b/tasks/ironic_install.yml @@ -100,12 +100,12 @@ when: ironic_get_venv | failed or ironic_get_venv | skipped notify: Restart ironic services -- name: CentOS remove python from path first +- name: Remove python from path first (CentOS, openSUSE) file: path: "{{ ironic_bin | dirname }}/bin/python2.7" state: "absent" when: - - ansible_pkg_mgr == 'yum' + - ansible_pkg_mgr in ['yum', 'zypper'] - ironic_get_venv | changed - name: Update virtualenv path