summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/onos/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/ansible/roles/onos/tasks/main.yml')
-rwxr-xr-xdeploy/adapters/ansible/roles/onos/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/onos/tasks/main.yml b/deploy/adapters/ansible/roles/onos/tasks/main.yml
new file mode 100755
index 00000000..c3e7c7b7
--- /dev/null
+++ b/deploy/adapters/ansible/roles/onos/tasks/main.yml
@@ -0,0 +1,11 @@
+---
+- include_vars: "{{ ansible_os_family }}.yml"
+
+- name: Install ONOS Cluster on Controller
+ include: onos_controller.yml
+ when: inventory_hostname in groups['onos']
+
+- name: Install ONOS Cluster on Compute
+ include: openvswitch.yml
+ when: groups['onos']|length !=0 and inventory_hostname not in groups['onos']
+