forked from jlewallen/docker-manifests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasic.yml
29 lines (28 loc) · 919 Bytes
/
basic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- hosts: all
user: root
sudo: yes
vars:
version: 1
tasks:
- apt_repository: repo='ppa:dotcloud/lxc-docker'
- apt: update_cache=yes
- name: add package $item
apt: pkg=$item state=installed
with_items:
- vim
- tmux
- git-core
- build-essential
- python-setuptools
- python-pip
- locate
- openjdk-7-jdk
- software-properties-common
- linux-image-extra-$LOOKUP(pipe,uname -r)
- lxc-docker
- pip: name=flask
- git: repo=https://github.com/dotcloud/docker-py.git dest=~/docker-py
- shell: cd ~/docker-py && touch installed.{{version}} && sudo python setup.py install creates=~/docker-py/installed.{{version}}
- get_url: url=https://raw.github.com/jlewallen/docker-ansible/master/docker-ansible.py dest=/usr/share/ansible/docker mode=0770
- template: src=templates/interfaces dest=/etc/network/interfaces
notify: restart networking services