Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 1 | --- |
| 2 | - hosts: onos-cord-1 |
| 3 | remote_user: ubuntu |
| 4 | |
| 5 | tasks: |
| 6 | - name: Include configuration vars |
| 7 | include_vars: onos-setup-vars.yml |
| 8 | |
Zack Williams | 9b3c361 | 2016-04-14 07:05:30 -0700 | [diff] [blame] | 9 | - name: Create CORD directory |
| 10 | file: |
| 11 | path={{ ansible_user_dir }}/cord |
| 12 | state=directory |
| 13 | |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 14 | - name: Copy over SSH keys |
| 15 | copy: |
| 16 | src=~/.ssh/{{ item }} |
| 17 | dest={{ ansible_user_dir }}/cord/{{ item }} |
| 18 | owner={{ ansible_user_id }} mode=0600 |
| 19 | with_items: |
| 20 | - id_rsa |
| 21 | - id_rsa.pub |
| 22 | |
Zack Williams | 2a28709 | 2016-05-18 13:41:31 -0700 | [diff] [blame] | 23 | - name: Copy over files to build XOS variant of ONOS |
| 24 | copy: |
| 25 | src="~/{{ item }}" |
| 26 | dest="{{ ansible_user_dir }}/cord/{{ item }}" |
| 27 | with_items: |
| 28 | - Dockerfile.xos-onos |
| 29 | - onos-service |
| 30 | |
Zack Williams | e4fbacc | 2016-05-21 07:18:43 -0700 | [diff] [blame] | 31 | - name: Copy over & rename docker-compose file |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 32 | copy: |
Zack Williams | 2a28709 | 2016-05-18 13:41:31 -0700 | [diff] [blame] | 33 | src=~/onos-docker-compose.yml |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 34 | dest={{ ansible_user_dir }}/cord/docker-compose.yml |
| 35 | |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 36 | - name: Pull docker image for ONOS |
| 37 | command: docker pull onosproject/onos |
| 38 | |