Fix tools/vagrant_dev_env/vagrant.yml

It sets the correct working dir when calling scripts/env-setup.sh.
It also stops sourcing /opt/stack/ansible/hacking/env-setup as it is
no longer needed.

It currently conforms with README.rst.

Change-Id: If921b6b0df98d9e4e725b79168fbb3f500939362
Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
This commit is contained in:
Cédric Ollivier 2017-07-25 11:02:51 +02:00
parent 971b17bbfb
commit 11e514c543

View File

@ -75,13 +75,15 @@
file: path={{ansible_install_root}} state=directory owner=vagrant
- name: Prepare VM for Bifrost
command: /home/vagrant/bifrost/scripts/env-setup.sh
command: scripts/env-setup.sh
environment:
ANSIBLE_INSTALL_ROOT: "{{ansible_install_root}}"
ANSIBLE_INSTALL_ROOT: "{{ansible_install_root}}"
args:
chdir: /home/vagrant/bifrost
- name: Install Bifrost
shell: source {{ansible_install_root}}/ansible/hacking/env-setup && ansible-playbook -vvvv -i inventory/localhost install.yaml -e network_interface={{network_interface}}
command: ansible-playbook -vvvv -i inventory/localhost install.yaml -e network_interface={{network_interface}}
environment:
PATH: "{{ansible_env.HOME}}/.local/bin:{{ansible_env.PATH}}"
args:
chdir: /home/vagrant/bifrost/playbooks
executable: /bin/bash