Use virtualenv_path to set ansible_python_interpreter

Prior to Ansible 2.5 Jinja expansion was not supported in this variable.
Now that kayobe depends on 2.5, we can use the correct path.

Change-Id: I85f62ae80a8751a356cee5a56bc01493ae04d6f4
Story: 2002010
Task: 19648
This commit is contained in:
Mark Goddard 2018-09-21 18:47:29 +01:00
parent ad54510e35
commit 5815aa7332
3 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,3 @@
---
# Use a virtual environment for remote operations.
ansible_python_interpreter: /opt/kayobe/venvs/kayobe/bin/python
ansible_python_interpreter: "{{ virtualenv_path }}/kayobe/bin/python"

View File

@ -0,0 +1,3 @@
---
# Use a virtual environment for remote operations.
ansible_python_interpreter: "{{ virtualenv_path }}/kayobe/bin/python"

View File

@ -1,3 +1,3 @@
---
# Use a virtual environment for remote operations.
ansible_python_interpreter: /opt/kayobe/venvs/kayobe/bin/python
ansible_python_interpreter: "{{ virtualenv_path }}/kayobe/bin/python"