Ensure python/paths are updated if folder was not present
In the situation where a deployer may have removed the venv folder on the target host, but has not removed the the tgz/checksum file, the venv will get extracted, but the python/paths will not get updated. This patch ensures that if the venv folder was not there and gets created by the task then it will also update the python/paths. Change-Id: I8858e16a8c128e7d7f44c5e46dc8520aa5bc835b
This commit is contained in:
parent
8ffaab139b
commit
3f091944e1
@ -51,7 +51,7 @@
|
||||
sed -si '1s/^.*python.*$/#!{{ (venv_destination_path ~ '/bin') | replace ('/','\/') }}\/python/' {{ venv_destination_path }}/bin/*
|
||||
virtualenv {{ venv_destination_path }}
|
||||
when:
|
||||
- _venv_checksum_copy is mapping
|
||||
- _venv_checksum_copy | changed
|
||||
- (_venv_checksum_copy is mapping and _venv_checksum_copy | changed) or
|
||||
_venv_dir_create | changed
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
Loading…
x
Reference in New Issue
Block a user