| --- |
| - hosts: onos-cord |
| sudo: no |
| vars: |
| homedir: /tmp |
| remote_user: ubuntu |
| tasks: |
| - shell: "which docker > /dev/null || wget -qO- https://get.docker.com/ | sh" |
| |
| - shell: usermod -aG docker ubuntu |
| sudo: yes |
| |
| - 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" |
| sudo: yes |
| |
| - file: path={{ ansible_env['PWD'] }}/cord |
| state=directory |
| |
| - copy: src={{ homedir }}/{{ item }} |
| dest={{ ansible_env['PWD'] }}/cord |
| with_items: |
| - id_rsa |
| - docker-compose.yml |
| |
| # To do: add docker-compose.yml file to cord/ directory |