diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2013-11-26 05:25:45 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:50:55 +0200 |
commit | fca34cf712aacaa2d8db7a05d93daf3b949e7891 (patch) | |
tree | ace01b24462fcf70d4388a373df3a7015f3bc226 /roles/common/tasks | |
parent | 8b85aac244734d4764833043535eb64c84d0714b (diff) |
Load our schema *before* the database.
Since indices are specified in the database LDIF.
Diffstat (limited to 'roles/common/tasks')
-rw-r--r-- | roles/common/tasks/ldap.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/common/tasks/ldap.yml b/roles/common/tasks/ldap.yml index b1ced49..26ab349 100644 --- a/roles/common/tasks/ldap.yml +++ b/roles/common/tasks/ldap.yml @@ -32,35 +32,35 @@ - Restart slapd - name: Create directory /etc/ldap/fripost file: path=/etc/ldap/fripost owner=root group=root state=directory mode=0755 - name: Copy fripost database definition template: src=etc/ldap/database.ldif.j2 dest=/etc/ldap/fripost/database.ldif owner=root group=root mode=0600 - name: Copy fripost schema copy: src=etc/ldap/schema/fripost.ldif dest=/etc/ldap/schema/fripost.ldif owner=root group=root mode=0644 -- name: Create fripost database and load the schema +- name: Load fripost's schema and configure the database openldap: target=/etc/ldap/{{ item }} state=present with_items: - - fripost/database.ldif - schema/fripost.ldif + - fripost/database.ldif - name: Load LDAP modules openldap: module={{ item }}.la state=present with_items: # TODO only if provider - syncprov # TODO only if writable - constraint # TODO: authz constraint syncprov syncrepl |