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 | |
Zack Williams | 2b94629 | 2016-08-22 15:32:29 -0700 | [diff] [blame] | 6 | - name: Create templated ONOS files |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 7 | template: |
Zack Williams | 2b94629 | 2016-08-22 15:32:29 -0700 | [diff] [blame] | 8 | 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 Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 14 | |
Zack Williams | 2b94629 | 2016-08-22 15:32:29 -0700 | [diff] [blame] | 15 | - name: Copy over ONOS playbook and other files |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 16 | copy: |
Zack Williams | 2b94629 | 2016-08-22 15:32:29 -0700 | [diff] [blame] | 17 | src: "{{ item }}" |
| 18 | dest: "{{ ansible_user_dir }}/{{ item }}" |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 19 | with_items: |
| 20 | - onos-setup-playbook.yml |
Zack Williams | 2a28709 | 2016-05-18 13:41:31 -0700 | [diff] [blame] | 21 | - onos-docker-compose.yml |
Andy Bavier | f69e77c | 2016-06-28 17:19:33 -0400 | [diff] [blame] | 22 | - fabric-docker-compose.yml |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 23 | |
| 24 | - name: Run the ONOS ansible playbook |
| 25 | command: ansible-playbook {{ ansible_user_dir }}/onos-setup-playbook.yml |
Zack Williams | 2b94629 | 2016-08-22 15:32:29 -0700 | [diff] [blame] | 26 | async: 1800 |
Zack Williams | d31bbc9 | 2016-05-20 11:43:18 -0700 | [diff] [blame] | 27 | poll: 0 |
| 28 | register: onos_setup_playbook |
Zack Williams | 3562456 | 2016-08-28 17:12:26 -0700 | [diff] [blame] | 29 | tags: |
| 30 | - skip_ansible_lint # running a sub-job |
Zack Williams | 363bc85 | 2016-04-12 13:58:29 -0700 | [diff] [blame] | 31 | |