2016-01-04 20:05:08 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install nslcd
|
|
|
|
apt: name=nslcd state=present
|
|
|
|
|
|
|
|
- name: Configure nslcd
|
|
|
|
template: src=nslcd.conf.j2 dest=/etc/nslcd.conf
|
|
|
|
notify: restart nslcd
|
|
|
|
|
2016-01-04 21:40:59 +01:00
|
|
|
- name: Copy LDAP CA
|
2016-01-04 20:05:08 +01:00
|
|
|
copy: src=ldap.crt dest=/etc/ssl/ldap.crt mode=0644
|
|
|
|
notify: restart nslcd
|
|
|
|
|
|
|
|
- name: Configure PAM mkhomedir
|
|
|
|
copy: src=mkhomedir dest=/usr/share/pam-configs/mkhomedir mode=0644
|
|
|
|
notify: update pam-auth
|
|
|
|
|
|
|
|
- name: Start the nslcd service
|
|
|
|
service: name=nslcd state=started enabled=yes
|