blob: 0e1ef6b22725b877852c2f966d4c42d4f764fab2 [file] [log] [blame]
Zack Williams363bc852016-04-12 13:58:29 -07001---
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 Williams9b3c3612016-04-14 07:05:30 -07009 - name: Create CORD directory
10 file:
11 path={{ ansible_user_dir }}/cord
12 state=directory
13
Zack Williams363bc852016-04-12 13:58:29 -070014 - 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 Williams2a287092016-05-18 13:41:31 -070023 - 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 Williamse4fbacc2016-05-21 07:18:43 -070031 - name: Copy over & rename docker-compose file
Zack Williams363bc852016-04-12 13:58:29 -070032 copy:
Zack Williams2a287092016-05-18 13:41:31 -070033 src=~/onos-docker-compose.yml
Zack Williams363bc852016-04-12 13:58:29 -070034 dest={{ ansible_user_dir }}/cord/docker-compose.yml
35
Zack Williamsd31bbc92016-05-20 11:43:18 -070036 - name: Pull docker image for ONOS
Zack Williamsc637db52016-05-22 08:44:26 -070037 become: yes
Zack Williams3f3f6402016-06-08 13:31:12 -070038 command: docker pull xosproject/onos-fork
Zack Williamsd31bbc92016-05-20 11:43:18 -070039