Merge "Fix virtualenv-tools issue"

This commit is contained in:
Jenkins 2016-11-28 15:33:17 +00:00 committed by Gerrit Code Review
commit 6b29de939c

View File

@ -117,6 +117,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 }}