summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-11-26 05:25:45 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:50:55 +0200
commitfca34cf712aacaa2d8db7a05d93daf3b949e7891 (patch)
treeace01b24462fcf70d4388a373df3a7015f3bc226 /roles
parent8b85aac244734d4764833043535eb64c84d0714b (diff)
Load our schema *before* the database.
Since indices are specified in the database LDIF.
Diffstat (limited to 'roles')
-rw-r--r--roles/common/tasks/ldap.yml4
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
@@ -49,11 +49,11 @@
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