nscd.yml 564 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/nscd.yml

- name: ensure nscd is installed
  apt: name=nscd state=latest
  tags: nscd packages

- name: ensure proper nscd configuration
  copy: src=nsswitch.conf dest=/etc/nsswitch.conf owner=root group=root mode=0644
  notify:
    - restart nscd
    - clear nscd caches
  tags: nscd config

Lars Beckers's avatar
Lars Beckers committed
15
16
17
18
19
20
21
- name: ensure a happy nscd
  file: path=/etc/netgroup state=file
  notify:
    - restart nscd
    - clear nscd caches
  tags: nscd config

Lars Beckers's avatar
Lars Beckers committed
22
23
24
- name: ensure nscd is running
  service: name=nscd state=running enabled=yes
  tags: nscd service