Create venv_install_destination_path parent directory

Before creating the venv, it is necessary to make sure that the
parent directory exists otherwise venv creation will fail.

Change-Id: I241e249c919bc52fcc0220737b9d96d9608afebf
This commit is contained in:
Chandan Kumar 2019-01-08 18:09:22 +05:30
parent 5a31e77fb4
commit 44c421b5af
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@
when:
- venv_rebuild | bool
- name: Create the venv_install_destination_path parent directory
file:
path: "{{ venv_install_destination_path | dirname }}"
state: directory
# NOTE(odyssey4me):
# Not using --always-copy for CentOS/SuSE due to
# https://github.com/pypa/virtualenv/issues/565