diff --git a/tasks/neutron_install.yml b/tasks/neutron_install.yml index 396d818f..eaebf0ed 100644 --- a/tasks/neutron_install.yml +++ b/tasks/neutron_install.yml @@ -88,6 +88,15 @@ when: neutron_developer_mode | bool notify: Restart neutron services +- name: CentOS remove python from path first + file: + path: "{{ neutron_bin | dirname }}/bin/python2.7" + state: "absent" + when: + - ansible_pkg_mgr == 'yum' + - not neutron_developer_mode | bool + - neutron_get_venv | changed or neutron_venv_dir | changed + - name: Update virtualenv path command: > virtualenv-tools --update-path=auto --reinitialize {{ neutron_bin | dirname }}