Scott Baker | f93a06c | 2016-07-11 17:04:49 -0700 | [diff] [blame] | 1 | --- |
2 | # tasks for prereqs | ||||
3 | |||||
4 | - name: install httpie | ||||
5 | apt: | ||||
6 | pkg=httpie | ||||
7 | |||||
8 | - name: install curl | ||||
9 | apt: | ||||
10 | pkg=curl | ||||
11 | |||||
12 | - name: is docker installed | ||||
13 | command: which docker | ||||
14 | register: docker_installed | ||||
15 | |||||
16 | - name: install docker | ||||
17 | command: wget wget -qO- https://get.docker.com/ | sh | ||||
18 | when: docker_installed.rc != 0 | ||||
19 | |||||
20 | # XXX fixme -- current username is hardcoded to ubuntu | ||||
21 | |||||
22 | - name: add user to docker group | ||||
23 | user: | ||||
24 | name=ubunu | ||||
25 | groups=docker |