diff --git a/tasks/ironic_install.yml b/tasks/ironic_install.yml index 7bc1a740..ceee8258 100644 --- a/tasks/ironic_install.yml +++ b/tasks/ironic_install.yml @@ -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 }}