From e3e36f955be4a2a48788fb32222f909f2f2bdbda Mon Sep 17 00:00:00 2001 From: wutianwei Date: Wed, 28 Feb 2018 14:36:27 +0800 Subject: Add judgement for k8s stor4nfv Don't run storage roles when scenario isn't stor4nfv Change-Id: Ia8e65c90b58533427e74bad225aaa962d2583934 Signed-off-by: wutianwei --- deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'deploy/adapters') 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 -- cgit 1.2.3-korg