blob: 3f78d277652f2df8aced4a4c7b225e1a6ccf2566 [file] [log] [blame]
---
# onos-vm-install/tasks/main.yml
#
# Install ONOS on a sub vm by calling ansible
- name: Create a vars file from template
template:
src=onos-setup-vars.yml.j2
dest={{ ansible_user_dir }}/onos-setup-vars.yml
- name: Copy over ONOS playbook and docker compose files
copy:
src={{ item }}
dest={{ ansible_user_dir }}/{{ item }}
with_items:
- onos-setup-playbook.yml
- onos-docker-compose.yml
- Dockerfile.xos-onos
- onos-service
- name: Run the ONOS ansible playbook
command: ansible-playbook {{ ansible_user_dir }}/onos-setup-playbook.yml