diff --git a/tasks/keystone_install.yml b/tasks/keystone_install.yml index e38c8356..ef959c94 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 }}