diff --git a/tasks/cinder_install.yml b/tasks/cinder_install.yml index 7e0ba782..6bce29d2 100644 --- a/tasks/cinder_install.yml +++ b/tasks/cinder_install.yml @@ -90,6 +90,15 @@ when: cinder_developer_mode | bool notify: Restart cinder services +- name: CentOS remove python from path first + file: + path: "{{ cinder_bin | dirname }}/bin/python2.7" + state: "absent" + when: + - ansible_pkg_mgr == 'yum' + - not cinder_developer_mode | bool + - cinder_get_venv | changed or cinder_venv_dir | changed + - name: Update virtualenv path command: > virtualenv-tools --update-path=auto --reinitialize {{ cinder_bin | dirname }}