Create ansible_pip_virtualenv_symlink variable
Expose the ability for a user to create a symlink to a ansible virtualenv, this is usually needed when you start trying to version different virtualenv installs. Change-Id: I183458655efdbdd762172f69539244c39cd13e9a Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
f3254982e8
commit
32b5a5c3bf
@ -30,3 +30,4 @@ ansible_pip_name: ansible
|
||||
# ansible_pip_version:
|
||||
# ansible_pip_virtualenv_python:
|
||||
# ansible_pip_virtualenv:
|
||||
# ansible_pip_virtualenv_symlink:
|
||||
|
@ -21,3 +21,14 @@
|
||||
version: "{{ ansible_pip_version|default(omit) }}"
|
||||
virtualenv_python: "{{ ansible_pip_virtualenv_python|default(omit) }}"
|
||||
virtualenv: "{{ ansible_pip_virtualenv|default(omit) }}"
|
||||
|
||||
- name: Symlink ansible virtualenv
|
||||
become: true
|
||||
file:
|
||||
src: "{{ ansible_pip_virtualenv }}"
|
||||
dest: "{{ ansible_pip_virtualenv_symlink }}"
|
||||
state: link
|
||||
when:
|
||||
- ansible_pip_virtualenv is defined
|
||||
- ansible_pip_virtualenv_symlink is defined
|
||||
- ansible_pip_virtualenv != ansible_pip_virtualenv_symlink
|
||||
|
Loading…
Reference in New Issue
Block a user