blob: 24f23d125ca2b9200993afdc29df9dc660f91e90 [file] [log] [blame]
Zack Williams363bc852016-04-12 13:58:29 -07001---
Andy Bavierf69e77c2016-06-28 17:19:33 -04002# Common ONOS setup
3- hosts: onos-cord-1:onos-fabric-1
Zack Williams363bc852016-04-12 13:58:29 -07004 remote_user: ubuntu
5
6 tasks:
7 - name: Include configuration vars
8 include_vars: onos-setup-vars.yml
9
Zack Williams9b3c3612016-04-14 07:05:30 -070010 - name: Create CORD directory
11 file:
12 path={{ ansible_user_dir }}/cord
13 state=directory
14
Andy Bavierf69e77c2016-06-28 17:19:33 -040015 - name: Pull docker image for ONOS
16 become: yes
17 command: docker pull onosproject/onos:1.6
18
19# Setup specific for onos-cord VM
20- hosts: onos-cord-1
21 remote_user: ubuntu
22
23 tasks:
Zack Williams363bc852016-04-12 13:58:29 -070024 - name: Copy over SSH keys
25 copy:
26 src=~/.ssh/{{ item }}
27 dest={{ ansible_user_dir }}/cord/{{ item }}
28 owner={{ ansible_user_id }} mode=0600
29 with_items:
30 - id_rsa
31 - id_rsa.pub
32
Zack Williams2a287092016-05-18 13:41:31 -070033 - name: Copy over files to build XOS variant of ONOS
34 copy:
35 src="~/{{ item }}"
36 dest="{{ ansible_user_dir }}/cord/{{ item }}"
37 with_items:
38 - Dockerfile.xos-onos
39 - onos-service
40
Zack Williamse4fbacc2016-05-21 07:18:43 -070041 - name: Copy over & rename docker-compose file
Zack Williams363bc852016-04-12 13:58:29 -070042 copy:
Zack Williams2a287092016-05-18 13:41:31 -070043 src=~/onos-docker-compose.yml
Zack Williams363bc852016-04-12 13:58:29 -070044 dest={{ ansible_user_dir }}/cord/docker-compose.yml
45
Andy Bavierf69e77c2016-06-28 17:19:33 -040046- hosts: onos-fabric-1
47 remote_user: ubuntu
Zack Williamsd31bbc92016-05-20 11:43:18 -070048
Andy Bavierf69e77c2016-06-28 17:19:33 -040049 tasks:
50 - name: Copy over & rename docker-compose file
51 copy:
52 src=~/fabric-docker-compose.yml
53 dest={{ ansible_user_dir }}/cord/docker-compose.yml