| - name: Debian add Docker repository and update apt cache |
| repo: "{{ docker_apt_repo | default('deb https://apt.dockerproject.org/repo ubuntu-{{ debian_version }} main') }}" |
| - name: Debian Docker is present |
| name: docker-engine=1.12* |
| - name: Debian python-pip is present |
| apt: name=python-pip state=present |
| - name: Debian docker-py is present |
| - name: Debian files are present |
| dest: "{{ docker_cfg_dest }}" |
| - name: Debian Daemon is reloaded |
| command: systemctl daemon-reload |
| when: copy_result|changed and is_systemd is defined |
| - name: vagrant user is added to the docker group |
| - name: Debian Docker service is restarted |
| when: copy_result|changed or user_result|changed |
| - name: DockerUI is running |
| - /var/run/docker.sock:/var/run/docker.sock |
| when: not skip_ui is defined |