make sure step fails on nonzero exit from command before tee

Change-Id: I6d80675bc5d6de283645b3a26f64a9e3dfc4231b
diff --git a/roles/xos-start/tasks/main.yml b/roles/xos-start/tasks/main.yml
index f832910..0c98c67 100644
--- a/roles/xos-start/tasks/main.yml
+++ b/roles/xos-start/tasks/main.yml
@@ -3,11 +3,11 @@
 
 - name: Build XOS containers
   command: ansible xos-1 -u ubuntu -m shell \
-    -a "bash -c \"cd {{ service_profile_repo_dest }}/{{ xos_configuration }}; make local_containers |& tee xos-build.out\""
+    -a "bash -c \"set -o pipefail; cd {{ service_profile_repo_dest }}/{{ xos_configuration }}; make local_containers |& tee xos-build.out\""
 
 - name: Onboard services and start XOS
   command: ansible xos-1 -u ubuntu -m shell \
-    -a "bash -c \"cd {{ service_profile_repo_dest }}/{{ xos_configuration }}; make xos |& tee xos-onboard.out\""
+    -a "bash -c \"set -o pipefail; cd {{ service_profile_repo_dest }}/{{ xos_configuration }}; make xos |& tee xos-onboard.out\""
 
 - name: Pause to let XOS initialize
   pause: seconds=120