diff --git a/group_vars/all/vars.yaml b/group_vars/all/vars.yaml index fcba6e4697e4a8367010edc10d5f174672867a6d..b1ef1c5a9e85508a202fbd2a060dcbbd4f00f1a1 100644 --- a/group_vars/all/vars.yaml +++ b/group_vars/all/vars.yaml @@ -55,7 +55,6 @@ glob_ldap: - 172.16.10.12 - 172.16.10.13 base: 'dc=crans,dc=org' - local: false # local configuration but default value home_nounous: ip: 172.16.10.1 diff --git a/roles/ldap-client/templates/nslcd.conf.j2 b/roles/ldap-client/templates/nslcd.conf.j2 index aa1db15f97273225424ea834aef703db2da3bc02..59c05d1bfd81e9116c533d3b31ea27dfc2f8f832 100644 --- a/roles/ldap-client/templates/nslcd.conf.j2 +++ b/roles/ldap-client/templates/nslcd.conf.j2 @@ -8,7 +8,7 @@ uid nslcd gid nslcd # The location at which the LDAP server(s) should be reachable. -{% if ldap.local %} +{% if 'ldap_server' in group_names %} uri ldapi:/// {% else %} {% for server in ldap.servers %}