summaryrefslogtreecommitdiffstats
path: root/deploy/adapters
diff options
context:
space:
mode:
authorwutianwei <wutianwei1@huawei.com>2018-02-28 14:36:27 +0800
committerwutianwei <wutianwei1@huawei.com>2018-02-28 14:36:27 +0800
commite3e36f955be4a2a48788fb32222f909f2f2bdbda (patch)
tree59ed448a72b136ad856dfcc8e6f46309bc3cc7cf /deploy/adapters
parent743ca540fa2c8688720d9e54142e7ae77970d842 (diff)
Add judgement for k8s stor4nfv
Don't run storage roles when scenario isn't stor4nfv Change-Id: Ia8e65c90b58533427e74bad225aaa962d2583934 Signed-off-by: wutianwei <wutianwei1@huawei.com>
Diffstat (limited to 'deploy/adapters')
-rwxr-xr-xdeploy/adapters/ansible/kubernetes/ansible-kubernetes.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml b/deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml
index 1eae8a97..68dec5c2 100755
--- a/deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml
+++ b/deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml
@@ -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