update some roles to update software versions and bug fixes

Change-Id: I0e1436d670efdc561b527ed93d4f0f2330c50c77
diff --git a/roles/compute-node/tasks/main.yml b/roles/compute-node/tasks/main.yml
index f8edc77..7bf99ab 100644
--- a/roles/compute-node/tasks/main.yml
+++ b/roles/compute-node/tasks/main.yml
@@ -10,6 +10,7 @@
   user:
     name={{ ansible_user }}
     password="$6$TjhJuOgh8xp.v$z/4GwFbn5koVmkD6Ex9wY7bgP7L3uP2ujZkZSs1HNdzQdz9YclbnZH9GvqMC/M1iwC0MceL05.13HoFz/bai0/"
+  when: '"{{ ansible_user }}" == "ubuntu"'
 
 - name: Authorize SSH Key
   become: yes
diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml
index 6e7c5e6..da548df 100644
--- a/roles/docker/tasks/main.yml
+++ b/roles/docker/tasks/main.yml
@@ -25,14 +25,36 @@
     state: latest
     force: yes
 
+- name: Docker Exposed vi TCP
+  become: yes
+  lineinfile:
+    dest=/etc/default/docker
+    state=present
+    insertafter='#DOCKER_OPTS'
+    line='DOCKER_OPTS="-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock"'
+  register: docker_config
+
+- name: Docker Restart
+  become: yes
+  service:
+    name=docker
+    state=restarted
+  when: docker_config.changed
+
+- debug: msg="{{ ansible_user }}"
+
+- name: Enable Docker for User
+  become: yes
+  user:
+    name={{ ansible_user }}
+    group=docker
+    append=yes
+
 - name: Docker Compose
   become: yes
   get_url:
-    url: https://github.com/docker/compose/releases/download/1.4.1/docker-compose-Linux-x86_64
-    dest: /usr/local/bin/docker-compose
-
-- name: Docker Compose Permissions
-  become: yes
-  file:
-    path: /usr/local/bin/docker-compose
-    mode: 0755
+    url=https://github.com/docker/compose/releases/download/1.7.1/docker-compose-Linux-x86_64
+    dest=/usr/local/bin/docker-compose
+    owner=root
+    group=root
+    mode=0755