blob: 0dbb54fa8014e03e86cffdcbb66063c4015a85a0 [file] [log] [blame]
Zack Williams363bc852016-04-12 13:58:29 -07001---
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 Williams2a287092016-05-18 13:41:31 -070017 - onos-docker-compose.yml
18 - Dockerfile.xos-onos
19 - onos-service
Zack Williams363bc852016-04-12 13:58:29 -070020
21- name: Run the ONOS ansible playbook
22 command: ansible-playbook {{ ansible_user_dir }}/onos-setup-playbook.yml
Zack Williamsd31bbc92016-05-20 11:43:18 -070023 async: 1200
24 poll: 0
25 register: onos_setup_playbook
Zack Williams363bc852016-04-12 13:58:29 -070026