From fbff0797b22ca02d2587b7745cff3306f2a21237 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 14 Aug 2017 15:39:00 +0100 Subject: [PATCH] tasks: aodh_install.yml: Fix virtualenv-tools issue on openSUSE This is similar to Id7a1d25732de7d6c9001a5ef3bcce7ae02da5350 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: I1cf438ad20758ea386db1df9cf683952c4215799 --- tasks/aodh_install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/aodh_install.yml b/tasks/aodh_install.yml index 0577d9d..29430eb 100644 --- a/tasks/aodh_install.yml +++ b/tasks/aodh_install.yml @@ -114,12 +114,12 @@ when: aodh_get_venv | failed or aodh_get_venv | skipped notify: Restart aodh services -- name: CentOS remove python from path first +- name: Remove python from path first (CentOS, openSUSE) file: path: "{{ aodh_bin | dirname }}/bin/python2.7" state: "absent" when: - - ansible_pkg_mgr in ['yum', 'dnf'] + - ansible_pkg_mgr in ['yum', 'dnf', 'zypper'] - aodh_get_venv | changed - name: Update virtualenv path