Create diskimage_builder_pip_virtualenv_symlink variable
Expose the ability for a user to create a symlink to a diskimage-builder virtualenv, this is usually needed when you start trying to version different virtualenv installs. Change-Id: I4bc65ffd38c7e37dc0f8a4de0b688f0a94d43e37 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
54e7d5437c
commit
0ed7f22fdd
@ -30,3 +30,4 @@ diskimage_builder_pip_name: diskimage-builder
|
|||||||
# diskimage_builder_pip_version:
|
# diskimage_builder_pip_version:
|
||||||
# diskimage_builder_pip_virtualenv_python:
|
# diskimage_builder_pip_virtualenv_python:
|
||||||
# diskimage_builder_pip_virtualenv:
|
# diskimage_builder_pip_virtualenv:
|
||||||
|
# diskimage_builder_pip_virtualenv_symlink:
|
||||||
|
@ -20,3 +20,14 @@
|
|||||||
version: "{{ diskimage_builder_pip_version|default(omit) }}"
|
version: "{{ diskimage_builder_pip_version|default(omit) }}"
|
||||||
virtualenv_python: "{{ diskimage_builder_pip_virtualenv_python|default(omit) }}"
|
virtualenv_python: "{{ diskimage_builder_pip_virtualenv_python|default(omit) }}"
|
||||||
virtualenv: "{{ diskimage_builder_pip_virtualenv|default(omit) }}"
|
virtualenv: "{{ diskimage_builder_pip_virtualenv|default(omit) }}"
|
||||||
|
|
||||||
|
- name: Symlink diskimage-builder virtualenv
|
||||||
|
become: true
|
||||||
|
file:
|
||||||
|
src: "{{ diskimage_builder_pip_virtualenv }}"
|
||||||
|
dest: "{{ diskimage_builder_pip_virtualenv_symlink }}"
|
||||||
|
state: link
|
||||||
|
when:
|
||||||
|
- diskimage_builder_pip_virtualenv is defined
|
||||||
|
- diskimage_builder_pip_virtualenv_symlink is defined
|
||||||
|
- diskimage_builder_pip_virtualenv != diskimage_builder_pip_virtualenv_symlink
|
||||||
|
Loading…
Reference in New Issue
Block a user