ldap.yml 521 Bytes
Newer Older
Lars Beckers's avatar
Lars Beckers committed
1
2
3
4
5
---
# 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
Lars Beckers's avatar
Lars Beckers committed
6
7
8
9
  tags:
    - packages
    - clean
    - ldap
Lars Beckers's avatar
Lars Beckers committed
10
11
12
  
- name: ensure ldap NSS and PAM modules are installed
  apt: name=libnss-ldapd,libpam-ldapd,ldap-utils state=latest
Lars Beckers's avatar
Lars Beckers committed
13
14
15
  tags:
    - ldap
    - packages
Lars Beckers's avatar
Lars Beckers committed
16
17
18

- name: ensure proper global ldap configuration
  template: src=ldap.conf.j2 dest=/etc/ldap/ldap.conf owner=root group=root mode=0644
Lars Beckers's avatar
Lars Beckers committed
19
20
21
  tags:
    - ldap
    - config