blob: 1f2eedc9cc1d8f8253865f10f47d3157134f33b1 [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
Zack Williams2b946292016-08-22 15:32:29 -07006- name: Create templated ONOS files
Zack Williams363bc852016-04-12 13:58:29 -07007 template:
Zack Williams2b946292016-08-22 15:32:29 -07008 src: "{{ item }}.j2"
9 dest: "{{ ansible_user_dir }}/{{ item }}"
10 with_items:
11 - onos-setup-vars.yml
12 - Dockerfile.xos-onos
13 - onos-service
Zack Williams363bc852016-04-12 13:58:29 -070014
Zack Williams2b946292016-08-22 15:32:29 -070015- name: Copy over ONOS playbook and other files
Zack Williams363bc852016-04-12 13:58:29 -070016 copy:
Zack Williams2b946292016-08-22 15:32:29 -070017 src: "{{ item }}"
18 dest: "{{ ansible_user_dir }}/{{ item }}"
Zack Williams363bc852016-04-12 13:58:29 -070019 with_items:
20 - onos-setup-playbook.yml
Zack Williams2a287092016-05-18 13:41:31 -070021 - onos-docker-compose.yml
Andy Bavierf69e77c2016-06-28 17:19:33 -040022 - fabric-docker-compose.yml
Zack Williams363bc852016-04-12 13:58:29 -070023
24- name: Run the ONOS ansible playbook
25 command: ansible-playbook {{ ansible_user_dir }}/onos-setup-playbook.yml
Zack Williams2b946292016-08-22 15:32:29 -070026 async: 1800
Zack Williamsd31bbc92016-05-20 11:43:18 -070027 poll: 0
28 register: onos_setup_playbook
Zack Williams35624562016-08-28 17:12:26 -070029 tags:
30 - skip_ansible_lint # running a sub-job
Zack Williams363bc852016-04-12 13:58:29 -070031