diff --git a/tasks/cinder_install.yml b/tasks/cinder_install.yml index 8e7d8cf0..d4033063 100644 --- a/tasks/cinder_install.yml +++ b/tasks/cinder_install.yml @@ -126,6 +126,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 }}