install directly on head node
Change-Id: I861fda9725acbc222337f232ca0ffb2c1742e44c
diff --git a/roles/test-exampleservice/tasks/main.yml b/roles/test-exampleservice/tasks/main.yml
index 5d6a6bc..4df5ea8 100644
--- a/roles/test-exampleservice/tasks/main.yml
+++ b/roles/test-exampleservice/tasks/main.yml
@@ -4,19 +4,17 @@
# Run tests to check that the single-node deployment has worked
- name: Onboard ExampleService and instantiate a VM
- command: ansible xos-1 -u ubuntu -m shell \
- -a "cd ~/service-profile/cord-pod; make exampleservice"
+ command: chdir="{{ service_profile_repo_dest }}/{{ xos_configuration }}" bash -c "make exampleservice |& tee xos-make-exampleservice.out"
tags:
- - skip_ansible_lint # running a sub job
+ - skip_ansible_lint
- name: Pause 60 seconds (work around bug in synchronizer)
pause: seconds=60
- name: Re-run 'make vtn' (work around bug in synchronizer)
- command: ansible xos-1 -u ubuntu -m shell \
- -a "cd ~/service-profile/cord-pod; make vtn"
+ command: chdir="{{ service_profile_repo_dest }}/{{ xos_configuration }}" bash -c "make vtn |& tee xos-makevtn3.out"
tags:
- - skip_ansible_lint # running a sub job
+ - skip_ansible_lint
- name: Wait for ExampleService VM to come up
shell: bash -c "source ~/admin-openrc.sh; nova list --all-tenants|grep 'exampleservice.*ACTIVE' > /dev/null"