Fix failure with single-node pod install
Change-Id: I1c72be8a138cfbe2fe7882e22d40bb0e8c173f5d
(cherry picked from commit d0742e1f0ecf452684dc582fab1da8b580e84fe7)
diff --git a/roles/onos-load-apps/tasks/main.yml b/roles/onos-load-apps/tasks/main.yml
index 3a1bc2c..e4f165a 100644
--- a/roles/onos-load-apps/tasks/main.yml
+++ b/roles/onos-load-apps/tasks/main.yml
@@ -9,7 +9,7 @@
- name: Load the apps using Docker
command: ansible xos-1 -u ubuntu -m shell \
- -a "cd ~/xos/containers/cord-apps; make {{ item }}; docker run xosproject/cord-app-{{ item }}"
+ -a "cd ~/xos/containers/cord-apps; make {{ item }}; sudo docker run xosproject/cord-app-{{ item }}"
with_items: "{{ cord_apps }}"
- name: Enable debugging for cord apps