COMPASS-441 81/17181/1
authorCNlucius <lukai1@huawei.com>
Wed, 20 Jul 2016 02:22:16 +0000 (10:22 +0800)
committerCNlucius <lukai1@huawei.com>
Wed, 20 Jul 2016 02:22:16 +0000 (10:22 +0800)
Add condition for install related onos packages

Change-Id: If8d796f6fbbf47abf0dea8eb7df7bd8ab4fb9518
Signed-off-by: CNlucius <lukai1@huawei.com>
deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/tasks/main.yml

index dc0d51e..bda2ba3 100755 (executable)
@@ -12,6 +12,7 @@
 - name: install onos related packages
   action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
   with_items: packages | union(packages_noarch)
+  when: groups['onos']|length !=0
 
 - name: remove neutron-openvswitch-agent auto start
   shell: >