| apt: name={{ item }} state=present force=yes |
| - apt-transport-https=1.0* |
| - ca-certificates=20160104* |
| data="{{ lookup('file', 'docker_apt_key.gpg') }}" |
| - name: Docker repository |
| repo: "{{ docker_apt_repo | default('deb https://apt.dockerproject.org/repo ubuntu-trusty main') }}" |
| name: docker-engine=1.12* |
| - name: Docker Exposed via TCP |
| insertafter='#DOCKER_OPTS' |
| line='DOCKER_OPTS="-H unix:///var/run/docker.sock"' |
| when: docker_config.changed |
| - name: Enable Docker for User |
| url: https://github.com/docker/compose/releases/download/1.7.1/docker-compose-Linux-x86_64 |
| checksum: "sha256:3166bb74bc648e68c3154bc704fddf6bccf59f03a0c90fc48aefac034535e4ae" |
| dest: /usr/local/bin/docker-compose |