blob: ac76476bec8275592ad550b07c4c214fe06f7131 [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
25 # To do: add docker-compose.yml file to cord/ directory