blob: 49c2538ea2181d3758e91cc8986cbebcbe95dbe5 [file] [log] [blame]
Scott Baker58e88a82016-11-18 13:39:09 -08001---
Zack Williamsc989f262017-05-11 13:02:59 -07002# onos-fabric-install/tasks/main.yml
Scott Baker58e88a82016-11-18 13:39:09 -08003
Zack Williamsc989f262017-05-11 13:02:59 -07004- name: Pull base docker image for ONOS
5 docker_image:
6 name: "{{ onos_docker_image }}"
7
8- name: Create onos-fabric dest directory
Scott Baker58e88a82016-11-18 13:39:09 -08009 become: yes
Jonathan Hart2a3c01e2017-01-13 17:32:27 -080010 file:
Zack Williamsc989f262017-05-11 13:02:59 -070011 path: "{{ head_onos_fabric_dir }}"
Jonathan Hart2a3c01e2017-01-13 17:32:27 -080012 state: directory
Zack Williamsc989f262017-05-11 13:02:59 -070013 owner: "{{ ansible_user_id }}"
14 group: "{{ ansible_user_gid }}"
15 mode: 0755
Scott Baker58e88a82016-11-18 13:39:09 -080016
17- name: Create templated ONOS files
18 template:
19 src: "{{ item }}.j2"
Zack Williamsc989f262017-05-11 13:02:59 -070020 dest: "{{ head_onos_fabric_dir }}/{{ item }}"
Scott Baker58e88a82016-11-18 13:39:09 -080021 with_items:
Jonathan Hart2a3c01e2017-01-13 17:32:27 -080022 - docker-compose.yml
Scott Baker58e88a82016-11-18 13:39:09 -080023
24# Note: we do not rebuild onos container for the fabric
25
Zack Williamsc989f262017-05-11 13:02:59 -070026- name: Start ONOS for fabric
27 docker_service:
28 project_src: "{{ head_onos_fabric_dir }}"
Scott Baker58e88a82016-11-18 13:39:09 -080029