mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 21:08:32 +01:00
feat: keycloak & ldap
This commit is contained in:
18
roles/usermanagement/tasks/ldap.yaml
Normal file
18
roles/usermanagement/tasks/ldap.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
- name: Install LDAP packages
|
||||
apt:
|
||||
pkg:
|
||||
- slapd
|
||||
- ldap-utils
|
||||
|
||||
- name: Slapd /etc/default
|
||||
lineinfile:
|
||||
path: /etc/default/slapd
|
||||
regex: "^SLAP_SERVICES=.*$"
|
||||
line: SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"
|
||||
notify: restart slapd
|
||||
|
||||
# etc default slapd conf
|
||||
- name: LDAP Conf
|
||||
template:
|
||||
src: slapd.conf
|
||||
dest: /etc/ldap/slapd.conf
|
||||
Reference in New Issue
Block a user