Andy Bavier | e9042a9 | 2016-02-18 16:49:31 -0500 | [diff] [blame] | 1 | --- |
| 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 Bavier | 6b4579e | 2016-02-19 10:18:50 -0500 | [diff] [blame] | 25 | - file: path={{ ansible_env['PWD'] }}/cord/id_rsa |
| 26 | mode=0600 |