diff --git a/tasks/horizon_install.yml b/tasks/horizon_install.yml index d273a2c5..78377760 100644 --- a/tasks/horizon_install.yml +++ b/tasks/horizon_install.yml @@ -105,6 +105,15 @@ delay: 2 when: horizon_optional_pip_packages | length > 0 +- name: CentOS remove python from path first + file: + path: "{{ horizon_bin | dirname }}/bin/python2.7" + state: "absent" + when: + - ansible_pkg_mgr == 'yum' + - not horizon_developer_mode | bool + - horizon_get_venv | changed or horizon_venv_dir | changed + - name: Update virtualenv path command: > virtualenv-tools --update-path=auto --reinitialize {{ horizon_bin | dirname }}