Create the debconf configuration before installing the slapd package

This commit is contained in:
Andrea Dell'Amico 2018-03-01 18:24:35 +01:00
parent 7b0578c7d8
commit bccb9c27ca
2 changed files with 6 additions and 7 deletions

View File

@ -9,12 +9,6 @@
service: name=apparmor state=restarted
tags: [ 'ldap_server', 'ldap', 'ldap_conf' ]
- name: Create a basic configuration via debconf
debconf: name=slapd question='{{ item.question }}' value='{{ item.value }}' vtype='{{ item.vtype }}'
with_items: '{{ slapd_debconf_params }}'
when: openldap_service_enabled
tags: [ 'ldap_server', 'ldap', 'ldap_conf' ]
- name: Install the ldif file needed to change the BASE DN and the Root DN
template: src=base-dn.ldif.j2 dest=/etc/ldap/schema/base-dn.ldif owner=root group=root mode=0400
register: base_dn_ldif

View File

@ -1,5 +1,10 @@
---
- name: Create a basic configuration via debconf
debconf: name=slapd question='{{ item.question }}' value='{{ item.value }}' vtype='{{ item.vtype }}'
with_items: '{{ slapd_debconf_params }}'
when: openldap_service_enabled
tags: [ 'ldap_server', 'ldap', 'ldap_conf' ]
- name: Install the openldap server packages
apt: name={{ item }} state={{ openldap_pkg_state }}
with_items: '{{ openldap_pkg_list }}'