blob: 53a84f109cb2b1df5322195f6f848b140f6280db [file] [log] [blame]
Andy Baviere9042a92016-02-18 16:49:31 -05001---
2- hosts: onos-cord
3 sudo: no
4 vars:
5 homedir: /tmp
6 remote_user: ubuntu
7 tasks:
8 - shell: "which docker > /dev/null || wget -qO- https://get.docker.com/ | sh"
9
10 - shell: usermod -aG docker ubuntu
11 sudo: yes
12
13 - shell: "curl -L https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose; chmod +x /usr/local/bin/docker-compose"
14 sudo: yes
15
16 - file: path={{ ansible_env['PWD'] }}/cord
17 state=directory
18
19 - copy: src={{ homedir }}/{{ item }}
20 dest={{ ansible_env['PWD'] }}/cord
21 with_items:
22 - id_rsa
23 - docker-compose.yml
24
Andy Bavier6b4579e2016-02-19 10:18:50 -050025 - file: path={{ ansible_env['PWD'] }}/cord/id_rsa
26 mode=0600