Skip to content

Instantly share code, notes, and snippets.

@heracek
Forked from jameskyle/ubuntu.yml
Last active August 29, 2015 14:23
Show Gist options
  • Save heracek/279ff762c69768486ad1 to your computer and use it in GitHub Desktop.
Save heracek/279ff762c69768486ad1 to your computer and use it in GitHub Desktop.
- name: Set the Hostname
hostname: name=ubuntu
- name: upgrade packages
apt: upgrade=full
- name: install packages
apt: >
name="{{ item }}"
state=latest
with_items:
- git
- python-pip
- build-essential
- python-dev
- openvswitch-switch
- vim
- docker.io
- name: Start Docker TCP Service
lineinfile: dest=/etc/default/docker
regexp=^DOCKER_OPTS=
line='DOCKER_OPTS="-H tcp://0.0.0.0:2375"'
- name: Enable Docker Service
service: name=docker state=restarted enabled=true
- name: Add vagrant user to docker group
user: name=vagrant group=docker append=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment