| - hosts: onos-cord-1:onos-fabric-1 |
| - name: Include configuration vars |
| include_vars: onos-setup-vars.yml |
| - name: Create CORD directory |
| path={{ ansible_user_dir }}/cord |
| - name: Pull docker image for ONOS |
| command: docker pull onosproject/onos:1.6 |
| # Setup specific for onos-cord VM |
| - name: Copy over SSH key |
| src={{ node_private_key }} |
| dest={{ ansible_user_dir }}/cord/node_key |
| owner={{ ansible_user_id }} mode=0600 |
| - name: Copy over files to build XOS variant of ONOS |
| dest="{{ ansible_user_dir }}/cord/{{ item }}" |
| - name: Copy over & rename docker-compose file |
| src=~/onos-docker-compose.yml |
| dest={{ ansible_user_dir }}/cord/docker-compose.yml |
| - name: Copy over & rename docker-compose file |
| src=~/fabric-docker-compose.yml |
| dest={{ ansible_user_dir }}/cord/docker-compose.yml |