From b232b894c3cbe087c8d504e91637dcf62199eed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 29 Jul 2021 17:00:20 +0200 Subject: Bump to third revision of homelab --- roles/ldapd/tasks/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 roles/ldapd/tasks/main.yml (limited to 'roles/ldapd/tasks') diff --git a/roles/ldapd/tasks/main.yml b/roles/ldapd/tasks/main.yml new file mode 100644 index 0000000..2866ba8 --- /dev/null +++ b/roles/ldapd/tasks/main.yml @@ -0,0 +1,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 }}" -- cgit v1.2.3