ldap-server: Autodetect ldap data directory

This commit is contained in:
Timo Makinen 2021-09-19 19:19:41 +00:00
parent 64e2b45d6f
commit 68d903e31c
3 changed files with 10 additions and 4 deletions

View file

@ -1,4 +1,5 @@
---
ldap_server_cert: "{% if ldap_master is defined %}ldap01.foo.sh{% else %}\
ldap.foo.sh{% endif %}"
ldap_datadir: /srv/ldap
ldap_datadir: "{% if ansible_local['export'] %}/export/ldap{% else %}/srv/ldap{% endif %}"
ldap_backupdir: "{% if ansible_local['export'] %}/export/backup{% else %}/srv/backup{% endif %}"