aboutsummaryrefslogtreecommitdiffstats
path: root/roles/ldapd/tasks/main.yml
blob: 2866ba86494133d6161f6cbc3ac183210c2f9455 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- name: ensure ldapd db dir exists
  file:
    path: "{{ ldapd_dir }}"
    owner: "{{ ldapd_user }}"
    group: "{{ ldapd_group }}"
    state: directory
    mode: "0700"

- name: generate ldapd configuration
  template:
    src: etc-ldapd.conf.j2
    dest: /etc/ldapd.conf
    owner: "0"
    group: "0"
    mode: "0600"

- name: enable and start ldapd
  service:
    name: ldapd
    state: restarted
    enabled: true
    args: -r "{{ ldapd_dir }}"
remember that computers suck.