diff --git a/defaults/main.yml b/defaults/main.yml index cbe2847..9c57511 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -109,7 +109,6 @@ tacker_service_in_ldap: false # packages that must be installed before anything else tacker_requires_pip_packages: - virtualenv - - virtualenv-tools - python-keystoneclient # Keystoneclient needed to OSA keystone lib ## Common pip packages diff --git a/tasks/tacker_install.yml b/tasks/tacker_install.yml index e0713df..14d88e5 100644 --- a/tasks/tacker_install.yml +++ b/tasks/tacker_install.yml @@ -133,8 +133,11 @@ - skip_ansible_lint - name: Update virtualenv path - command: > - virtualenv-tools --update-path=auto {{ tacker_bin | dirname }} + shell: | + find {{ tacker_bin }} -name \*.pyc -delete + sed -si '1s/^.*python.*$/#!{{ tacker_bin | replace ('/','\/') }}\/python/' {{ tacker_bin }}/* + tags: + - skip_ansible_lint when: - not tacker_developer_mode | bool - tacker_get_venv | success