ldap.yml 479 Bytes
Newer Older
Lars Beckers's avatar
Lars Beckers committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
# file: roles/ad-auth/tasks/ldap.yml

- name: ensure old libnss-ldap and libnss-pam are not installed
  apt: name=libnss-ldap,libpam-ldap state=absent
  tags: packages clean ldap
  
- name: ensure ldap NSS and PAM modules are installed
  apt: name=libnss-ldapd,libpam-ldapd,ldap-utils state=latest
  tags: ldap packages

- name: ensure proper global ldap configuration
  template: src=ldap.conf.j2 dest=/etc/ldap/ldap.conf owner=root group=root mode=0644
  tags: ldap config