Add judgement for k8s stor4nfv 97/52797/1
authorwutianwei <wutianwei1@huawei.com>
Wed, 28 Feb 2018 06:36:27 +0000 (14:36 +0800)
committerwutianwei <wutianwei1@huawei.com>
Wed, 28 Feb 2018 06:36:27 +0000 (14:36 +0800)
Don't run storage roles when scenario isn't stor4nfv

Change-Id: Ia8e65c90b58533427e74bad225aaa962d2583934
Signed-off-by: wutianwei <wutianwei1@huawei.com>
deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml

index 1eae8a9..68dec5c 100755 (executable)
@@ -47,7 +47,8 @@
   remote_user: root
   max_fail_percentage: 0
   roles:
-    - storage
+    - role: storage
+      when: stor4nfv is defined and stor4nfv == "Enable"
 
 - hosts: storage_master
   remote_user: root