--- - name: Add Docker repository key apt_key: url="https://get.docker.io/gpg" tags: - docker - name: Add Docker repository apt_repository: repo='deb http://get.docker.io/ubuntu docker main' update_cache=yes tags: - docker - name: Install Docker apt: pkg=lxc-docker state=present tags: - docker