From 59b0e20b6c1f7f80ce7dcacfa8fb5e1687eefeea Mon Sep 17 00:00:00 2001 From: chenshuai Date: Mon, 31 Oct 2016 03:17:44 -0400 Subject: code refactoring: opendaylight JIRA: COMPASS-500 Change-Id: I205f1fb1f31219517f6e2408fa43c8679a1cc0a6 Signed-off-by: chenshuai Signed-off-by: chenshuai@huawei.com --- deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml') diff --git a/deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml b/deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml index a917a769..50f40db7 100755 --- a/deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml +++ b/deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml @@ -11,14 +11,18 @@ tags: - test_odl -- name: Install ODL Cluster on Controller - include: odl_controller.yml +- name: Provision Common on all nodes + include: 00_odl_common.yml + when: groups['odl']|length !=0 + +- name: Provision ODL on Controller nodes + include: 01_odl_controller.yml when: inventory_hostname in groups['odl'] -- name: Install ODL Cluster on Compute - include: openvswitch.yml +- name: Provision ODL on Compute nodes + include: 02_odl_compute.yml when: groups['odl']|length !=0 and inventory_hostname not in groups['odl'] - name: Config nova - include: odl_l3_nova.yml + include: 04_odl_l3_nova.yml when: groups['odl']|length !=0 and odl_l3_agent == "Enable" -- cgit 1.2.3-korg