1
0
forked from infra/ansible
infra/roles/ldap-pam/tasks/main.yml

25 lines
535 B
YAML
Raw Normal View History

2016-01-04 20:05:08 +01:00
---
- name: Install nslcd
apt: name=nslcd state=present
2016-02-01 20:56:51 +01:00
tags: ldap
2016-01-04 20:05:08 +01:00
- name: Configure nslcd
template: src=nslcd.conf.j2 dest=/etc/nslcd.conf
2016-02-15 19:17:28 +01:00
notify: Restart nslcd
2016-02-01 20:56:51 +01:00
tags: ldap
2016-01-04 20:05:08 +01:00
2016-04-01 20:27:29 +02:00
- name: Configure nsswitch
copy: src=nsswitch.conf dest=/etc/nsswitch.conf
notify: Restart nscd
tags: ldap
2016-01-04 20:05:08 +01:00
- name: Configure PAM mkhomedir
copy: src=mkhomedir dest=/usr/share/pam-configs/mkhomedir mode=0644
2016-02-15 19:17:28 +01:00
notify: Update pam-auth
2016-02-01 20:56:51 +01:00
tags: ldap
2016-01-04 20:05:08 +01:00
- name: Start the nslcd service
service: name=nslcd state=started enabled=yes
2016-02-01 20:56:51 +01:00
tags: ldap