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
This commit is contained in:
Mohammed Naser 2018-12-29 14:56:40 -05:00
parent 6907593472
commit 23917bd69a
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,8 @@
- include_tasks: keystone_ldap_setup.yml
when:
- "keystone_service_setup | bool"
- keystone_service_setup | bool
- keystone_ldap != {}
tags:
- keystone-config