Skip to content

Instantly share code, notes, and snippets.

@antonio
Created May 15, 2014 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonio/14582aed696276db0de0 to your computer and use it in GitHub Desktop.
Save antonio/14582aed696276db0de0 to your computer and use it in GitHub Desktop.
Install docker
---
- hosts: all
remote_user: antonio
sudo: yes
tasks:
- name: ensure apt can deal with https
apt: name=apt-transport-https state=present
- name: add the docker repository
apt_repository: repo='deb https://get.docker.io/ubuntu docker main' state=present
- name: update the system
apt: update_cache=yes upgrade=yes
- name: install docker
apt: name=lxc-docker state=latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment