diff --git a/tasks/swift_install.yml b/tasks/swift_install.yml index 99598139..ec3643f7 100644 --- a/tasks/swift_install.yml +++ b/tasks/swift_install.yml @@ -99,6 +99,16 @@ notify: - Restart swift services +- name: CentOS remove python from path first + file: + path: "{{ swift_bin | dirname }}/bin/python2.7" + state: "absent" + when: + - ansible_pkg_mgr == 'yum' + - not swift_pypy_enabled | bool + - not swift_developer_mode | bool + - swift_get_venv | changed or swift_venv_dir | changed + - name: Update virtualenv path command: > virtualenv-tools --update-path=auto --reinitialize {{ swift_bin | dirname }}