ansible/roles/ldap-pam/tasks/main.yml

20 lines
456 B
YAML

---
- name: Install nslcd
apt: name=nslcd
- name: Configure nslcd
template: src=nslcd.conf.j2 dest=/etc/nslcd.conf
notify: Restart nslcd
- name: Configure nsswitch
copy: src=nsswitch.conf dest=/etc/nsswitch.conf
notify: Restart nscd
- 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