Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 1 | --- |
| 2 | # onos-vm-install/tasks/main.yml |
| 3 | # |
| 4 | # Install ONOS on a sub vm by calling ansible |
| 5 | |
| 6 | - name: Create a vars file from template |
| 7 | template: |
| 8 | src=onos-setup-vars.yml.j2 |
| 9 | dest={{ ansible_user_dir }}/onos-setup-vars.yml |
| 10 | |
| 11 | - name: Copy over ONOS playbook and docker compose files |
| 12 | copy: |
| 13 | src={{ item }} |
| 14 | dest={{ ansible_user_dir }}/{{ item }} |
| 15 | with_items: |
| 16 | - onos-setup-playbook.yml |
Zack Williams | 2a28709 | 2016-05-18 13:41:31 -0700 | [diff] [blame] | 17 | - onos-docker-compose.yml |
Andy Bavier | f69e77c | 2016-06-28 17:19:33 -0400 | [diff] [blame] | 18 | - fabric-docker-compose.yml |
Zack Williams | 2a28709 | 2016-05-18 13:41:31 -0700 | [diff] [blame] | 19 | - Dockerfile.xos-onos |
| 20 | - onos-service |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 21 | |
| 22 | - name: Run the ONOS ansible playbook |
| 23 | command: ansible-playbook {{ ansible_user_dir }}/onos-setup-playbook.yml |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 24 | async: 1200 |
| 25 | poll: 0 |
| 26 | register: onos_setup_playbook |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 27 | |