summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/post-osa/tasks/main.yml
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2017-10-31 19:57:27 +0800
committerYifei Xue <xueyifei@huawei.com>2017-11-15 15:23:44 +0800
commit989d936c05c4f841efa383676473d2c6cc2cfba5 (patch)
tree412d26121a734b9baf8f5377491b4632579ee5e7 /deploy/adapters/ansible/roles/post-osa/tasks/main.yml
parent805cbb914fa5927b4b04ea124870c66ecbcba6cc (diff)
Install networking-sfc for non odl-sfc scenarios
JIRA: - Currently we only install networking-sfc for odl-sfc scenario, however someone may use native neutron sfc functionality.So we propose this patch to add installation of networking-sfc for non odl scenarios. Change-Id: I4527387626f0c14fb6af135c511d0fd783b8f624 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/post-osa/tasks/main.yml')
-rw-r--r--deploy/adapters/ansible/roles/post-osa/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/post-osa/tasks/main.yml b/deploy/adapters/ansible/roles/post-osa/tasks/main.yml
index c48a5d1a..f7f7a6cc 100644
--- a/deploy/adapters/ansible/roles/post-osa/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/post-osa/tasks/main.yml
@@ -8,3 +8,10 @@
##############################################################################
---
- include: "{{ ansible_distribution }}.yml"
+ when: inventory_hostname in groups['compute']
+
+# install networking-sfc for non odl scenarios
+- include: install_networking_sfc.yml
+ when:
+ - odl_sfc is not defined or odl_sfc == "Disable"
+ - inventory_hostname not in groups['compute']