Skip to content

Instantly share code, notes, and snippets.

@muloka
Created November 26, 2013 14:09
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 muloka/7658850 to your computer and use it in GitHub Desktop.
Save muloka/7658850 to your computer and use it in GitHub Desktop.
# vagrant.yml
- hosts: all
user: vagrant
sudo: True
tasks:
- name: Update APT package cache
apt: update_cache=yes
- name: Upgrade APT packages
apt: upgrade=yes
- name: Install linux-image-extra
apt: pkg=linux-image-extra-{{ ansible_kernel }} state=present
# Add the Docker repository key to your local keychain
# using apt-key finger you can check the fingerprint matches 36A1 D786 9245 C895 0F96 6E92 D857 6A8B A88D 21E9
- shell: wget -qO- https://get.docker.io/gpg | apt-key add -
# Add the Docker repository to your apt sources list.
- shell: echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
- name: Update APT package cache
apt: update_cache=yes
- name: Update APT package cache
apt: pkg=lxc-docker state=present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment