Vagrant: run ansible-playbook from venv

The VENV env variable is defined but not used, if we don't specify
the correct path for the ansible-playbook binary, the task will
fail.

Change-Id: I425445fc3c716d085ba9c93fa253b649ee7c0438
This commit is contained in:
Riccardo Pittau 2020-01-16 15:55:51 +01:00 committed by Dmitry Tantsur
parent 80386cd125
commit 3b1fd3c01d
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@
become: yes
- name: Install Bifrost
command: ansible-playbook -vvvv -i inventory/target install.yaml -e network_interface={{network_interface}} -e ansible_python_interpreter="/usr/bin/python3" -e download_ipa=true -e use_cirros=true -e enable_venv=true
command: ${VENV}/bin/ansible-playbook -vvvv -i inventory/target install.yaml -e network_interface={{network_interface}} -e ansible_python_interpreter="/usr/bin/python3" -e download_ipa=true -e use_cirros=true -e enable_venv=true
environment:
PATH: "{{ansible_env.HOME}}/.local/bin:{{ansible_env.PATH}}"
VENV: "/opt/stack/bifrost"