Created
December 31, 2015 09:44
-
-
Save rstarmer/a2c933cf30e16cd100cf to your computer and use it in GitHub Desktop.
A playbook to deploy a docker environment on an Ubuntu 14.04 based VM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
sudo: no | |
#### | |
tasks: | |
- name: Install dependencies | |
apt: | |
name={{ item }} | |
update_cache=yes | |
with_items: | |
- python-dev | |
- python-setuptools | |
- name: Install pip | |
easy_install: | |
name=pip | |
- name: Install docker-py | |
pip: | |
name=docker-py | |
state=present | |
version=1.1.0 | |
##### | |
- name: Add docker apt repo | |
apt_repository: | |
repo='deb https://apt.dockerproject.org/repo ubuntu-{{ ansible_distribution_release }} main' | |
state=present | |
- name: Import the Docker repository key | |
apt_key: | |
url=https://apt.dockerproject.org/gpg | |
state=present | |
id=2C52609D | |
- name: Install Docker package | |
apt: | |
name=docker-engine | |
update_cache=yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment