use become to run docker
diff --git a/roles/onos-vm-install/files/onos-setup-playbook.yml b/roles/onos-vm-install/files/onos-setup-playbook.yml
index 446763f..7465399 100644
--- a/roles/onos-vm-install/files/onos-setup-playbook.yml
+++ b/roles/onos-vm-install/files/onos-setup-playbook.yml
@@ -75,12 +75,8 @@
src=~/onos-docker-compose.yml
dest={{ ansible_user_dir }}/cord/docker-compose.yml
- - name: Make sure docker daemon is running
- become: yes
- service:
- name=docker
- state=started
-
+ # become works around group issue
- name: Pull docker image for ONOS
+ become: yes
command: docker pull onosproject/onos
diff --git a/roles/xos-vm-install/files/xos-setup-cord-pod-playbook.yml b/roles/xos-vm-install/files/xos-setup-cord-pod-playbook.yml
index ce913e8..68a86ad 100644
--- a/roles/xos-vm-install/files/xos-setup-cord-pod-playbook.yml
+++ b/roles/xos-vm-install/files/xos-setup-cord-pod-playbook.yml
@@ -51,5 +51,6 @@
dest={{ xos_repo_dest }}/xos/configurations/{{ xos_configuration }}/node_key
- name: Pull docker images for XOS
+ become: yes
command: docker-compose pull chdir="{{ xos_repo_dest }}/xos/configurations/{{ xos_configuration }}"