-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker.yml
More file actions
28 lines (24 loc) · 703 Bytes
/
docker.yml
File metadata and controls
28 lines (24 loc) · 703 Bytes
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
---
- name: Install docker
hosts: all
# accelerate: true
tasks:
- name: Install linux kernel
apt: name={{ item }} state=latest update_cache=yes
with_items:
- linux-image-generic-lts-raring
- linux-headers-generic-lts-raring
notify:
- reboot host
- name: Enable PPA and Install Deps
apt: name={{ item }} state=latest update_cache=yes
with_items:
- software-properties-common
- python-pycurl
- name: Add docker PPA
apt_repository: repo=ppa:dotcloud/lxc-docker
- name: Install docker
apt: name=lxc-docker state=latest update_cache=yes
handlers:
- name: reboot host
command: /sbin/reboot -t now