From 23917bd69ae4418c22c65db585080c40dca53e58 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Sat, 29 Dec 2018 14:56:40 -0500 Subject: [PATCH] ldap: include tasks only when configuration is provided Instead of including the tasks and then skipping them all because we have no LDAP configuration provided, we avoid including it at all. Change-Id: I1480045e9ecc5611fa1b97ae4c4ae3097a42eb9e --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index dcb4eea7..b735501e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -142,7 +142,8 @@ - include_tasks: keystone_ldap_setup.yml when: - - "keystone_service_setup | bool" + - keystone_service_setup | bool + - keystone_ldap != {} tags: - keystone-config