forked from ISTI-ansible-roles/ansible-roles
Create the debconf configuration before installing the slapd package
This commit is contained in:
parent
7b0578c7d8
commit
bccb9c27ca
|
@ -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
|
||||
|
|
|
@ -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 }}'
|
||||
|
|
Loading…
Reference in New Issue