slapd: can take a list of ldif file to be injected as a list variable

This commit is contained in:
2019-09-10 22:49:40 +02:00
parent 66d46b90f2
commit baf98d3a96
4 changed files with 37 additions and 22 deletions

View File

@@ -1,10 +1,7 @@
- name: debug
debug:
msg: "schema {{ schema }}"
- name: check if schema is loaded
command: "ldapsearch -LLL -Y EXTERNAL -H ldapi:/// -b cn=schema,cn=config dn"
register: ldap_schema_list
changed_when
- name: import additional schemas
command: "ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/{{ schema }}.ldif"