Fix virtualenv-tools issue
please see https://github.com/fireteam/virtualenv-tools/issues/5 This make installation of the virtualenv impossible on CentOS7 since you endup with python > python2.7 and python2.7 > python lrwxrwxrwx. 1 root root 9 Nov 24 20:49 python -> python2.7 lrwxrwxrwx. 1 root root 6 Nov 14 20:03 python2 -> python lrwxrwxrwx. 1 root root 6 Nov 14 20:03 python2.7 -> python Change-Id: I87628ad30523e34bc3fa5abd454860d90663737f Related-Bug: #1637509 Partial-Bug: #1644629
This commit is contained in:
parent
42229fda25
commit
40f6211041
@ -89,6 +89,15 @@
|
||||
when: ironic_developer_mode | bool
|
||||
notify: Restart ironic services
|
||||
|
||||
- name: CentOS remove python from path first
|
||||
file:
|
||||
path: "{{ ironic_bin | dirname }}/bin/python2.7"
|
||||
state: "absent"
|
||||
when:
|
||||
- ansible_pkg_mgr == 'yum'
|
||||
- not ironic_developer_mode | bool
|
||||
- ironic_get_venv | changed or ironic_venv_dir | changed
|
||||
|
||||
- name: Update virtualenv path
|
||||
command: >
|
||||
virtualenv-tools --update-path=auto --reinitialize {{ ironic_bin | dirname }}
|
||||
|
Loading…
Reference in New Issue
Block a user