point the compute nodes at the local docker registry

Change-Id: I1ed5d179838993908414cac6b755b63ff5efcb4a
diff --git a/roles/compute-node/tasks/main.yml b/roles/compute-node/tasks/main.yml
index 1b7fb9b..5f5a8dd 100644
--- a/roles/compute-node/tasks/main.yml
+++ b/roles/compute-node/tasks/main.yml
@@ -16,6 +16,21 @@
     - python-pip
     - ifenslave-2.6
 
+- name: Ensure Docker Insecure Repository
+  become: yes
+  lineinfile:
+    dest: /etc/default/docker
+    line: 'DOCKER_OPTS="$DOCKER_OPTS --insecure-registry docker-registry:5000"'
+    insertafter: '^DOCKER_OPTS'
+  register: docker_config
+
+- name: Docker Restart
+  become: yes
+  service:
+    name=docker
+    state=restarted
+  when: docker_config.changed
+
 - name: Ensure Docker Ansible Support
   become: yes
   pip: