Skip to content

Instantly share code, notes, and snippets.

@blissdev
Created October 12, 2013 19:57
Show Gist options
  • Save blissdev/6954182 to your computer and use it in GitHub Desktop.
Save blissdev/6954182 to your computer and use it in GitHub Desktop.
Install Docker with Ansible
- name: add docker repository key
sudo: yes
shell: curl https://get.docker.io/gpg | apt-key add -
- name: add docker repository
sudo: yes
shell: echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
- name: update apt
apt: update_cache=yes
sudo: yes
- name: install docker
apt: pkg=lxc-docker state=installed
sudo: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment