diff --git a/group_vars/all/vars.yaml b/group_vars/all/vars.yaml index fcba6e46..b1ef1c5a 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 aa1db15f..59c05d1b 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 %}