Scott Baker | 58e88a8 | 2016-11-18 13:39:09 -0800 | [diff] [blame] | 1 | --- |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 2 | # onos-fabric-install/tasks/main.yml |
Scott Baker | 58e88a8 | 2016-11-18 13:39:09 -0800 | [diff] [blame] | 3 | |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 4 | - name: Pull base docker image for ONOS |
| 5 | docker_image: |
| 6 | name: "{{ onos_docker_image }}" |
| 7 | |
| 8 | - name: Create onos-fabric dest directory |
Scott Baker | 58e88a8 | 2016-11-18 13:39:09 -0800 | [diff] [blame] | 9 | become: yes |
Jonathan Hart | 2a3c01e | 2017-01-13 17:32:27 -0800 | [diff] [blame] | 10 | file: |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 11 | path: "{{ head_onos_fabric_dir }}" |
Jonathan Hart | 2a3c01e | 2017-01-13 17:32:27 -0800 | [diff] [blame] | 12 | state: directory |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 13 | owner: "{{ ansible_user_id }}" |
| 14 | group: "{{ ansible_user_gid }}" |
| 15 | mode: 0755 |
Scott Baker | 58e88a8 | 2016-11-18 13:39:09 -0800 | [diff] [blame] | 16 | |
| 17 | - name: Create templated ONOS files |
| 18 | template: |
| 19 | src: "{{ item }}.j2" |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 20 | dest: "{{ head_onos_fabric_dir }}/{{ item }}" |
Scott Baker | 58e88a8 | 2016-11-18 13:39:09 -0800 | [diff] [blame] | 21 | with_items: |
Jonathan Hart | 2a3c01e | 2017-01-13 17:32:27 -0800 | [diff] [blame] | 22 | - docker-compose.yml |
Scott Baker | 58e88a8 | 2016-11-18 13:39:09 -0800 | [diff] [blame] | 23 | |
| 24 | # Note: we do not rebuild onos container for the fabric |
| 25 | |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 26 | - name: Start ONOS for fabric |
| 27 | docker_service: |
| 28 | project_src: "{{ head_onos_fabric_dir }}" |
Scott Baker | 58e88a8 | 2016-11-18 13:39:09 -0800 | [diff] [blame] | 29 | |