slapd: can take a list of ldif file to be injected as a list variable
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user