25 lines
535 B
YAML
25 lines
535 B
YAML
---
|
|
|
|
- name: Install nslcd
|
|
apt: name=nslcd state=present
|
|
tags: ldap
|
|
|
|
- name: Configure nslcd
|
|
template: src=nslcd.conf.j2 dest=/etc/nslcd.conf
|
|
notify: Restart nslcd
|
|
tags: ldap
|
|
|
|
- name: Copy LDAP CA
|
|
copy: src=ldap.crt dest=/etc/ldap/ldap.crt mode=0644
|
|
notify: Restart nslcd
|
|
tags: ldap
|
|
|
|
- name: Configure PAM mkhomedir
|
|
copy: src=mkhomedir dest=/usr/share/pam-configs/mkhomedir mode=0644
|
|
notify: Update pam-auth
|
|
tags: ldap
|
|
|
|
- name: Start the nslcd service
|
|
service: name=nslcd state=started enabled=yes
|
|
tags: ldap
|