summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/ldap.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/common/tasks/ldap.yml')
-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
@@ -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