Merge "Replace virtualenv-tools by a script"
This commit is contained in:
commit
5730d33706
|
@ -129,7 +129,6 @@ barbican_ssl_self_signed_subject: "/C=US/ST=Texas/L=San Antonio/O=IT/CN={{ inter
|
|||
# packages required to execute the role
|
||||
barbican_requires_pip_packages:
|
||||
- virtualenv
|
||||
- virtualenv-tools
|
||||
- python-keystoneclient # Keystoneclient needed by OSA keystone lib
|
||||
|
||||
# packages required to run the barbican service
|
||||
|
|
|
@ -108,9 +108,12 @@
|
|||
- barbican_get_venv | changed
|
||||
|
||||
- name: Update virtualenv path
|
||||
command: >
|
||||
virtualenv-tools --update-path=auto --reinitialize {{ barbican_bin | dirname }}
|
||||
shell: |
|
||||
find {{ barbican_bin }} -name \*.pyc -delete
|
||||
sed -si '1s/^.*python.*$/#!{{ barbican_bin | replace ('/','\/') }}\/python/' {{ barbican_bin }}/*
|
||||
when: barbican_get_venv | changed
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: Record the venv tag deployed
|
||||
ini_file:
|
||||
|
|
Loading…
Reference in New Issue