-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinstall-ldap.yml
More file actions
39 lines (33 loc) · 784 Bytes
/
install-ldap.yml
File metadata and controls
39 lines (33 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
- name: Install OpenLDAP
hosts: localhost
connection: local
become: true
vars:
admin_password: password
tasks:
- name: Pre-configuring LDAP admin password
debconf:
name: slapd
question: slapd/password1
value: "{{ admin_password }}"
vtype: password
- name: Confirming LDAP admin password
debconf:
name: slapd
question: slapd/password2
value: "{{ admin_password }}"
vtype: password
- name: Installing slapd
apt:
name: slapd
state: latest
update_cache: true
- name: Installing lapdutils
apt:
name: ldap-utils
state: latest
update_cache: true
- name: Reminding to change the password
debug:
msg: The initial password is '{{ admin_password }}'.