From dbf5a35102acf4926a921177f282df0c86c3d2fa Mon Sep 17 00:00:00 2001 From: Marc Gariepy Date: Thu, 24 Nov 2016 15:44:36 -0500 Subject: [PATCH] Fix virtualenv-tools issue please see https://github.com/fireteam/virtualenv-tools/issues/5 This make installation of the virtualenv impossible on CentOS7 since you endup with python > python2.7 and python2.7 > python lrwxrwxrwx. 1 root root 9 Nov 24 20:49 python -> python2.7 lrwxrwxrwx. 1 root root 6 Nov 14 20:03 python2 -> python lrwxrwxrwx. 1 root root 6 Nov 14 20:03 python2.7 -> python Change-Id: I8a27bb268ea2e145ed113c652ab7846f6adc3f82 Related-Bug: #1637509 Partial-Bug: #1644629 --- tasks/keystone_install.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tasks/keystone_install.yml b/tasks/keystone_install.yml index e38c8356b..ef959c94e 100644 --- a/tasks/keystone_install.yml +++ b/tasks/keystone_install.yml @@ -241,6 +241,15 @@ - Restart service on first node - Restart service on other nodes +- name: CentOS remove python from path first + file: + path: "{{ keystone_bin | dirname }}/bin/python2.7" + state: "absent" + when: + - ansible_pkg_mgr == 'yum' + - not keystone_developer_mode | bool + - keystone_get_venv | changed or keystone_venv_dir | changed + - name: Update virtualenv path command: > virtualenv-tools --update-path=auto --reinitialize {{ keystone_bin | dirname }}