Refractor ldap
This commit is contained in:
parent
e15ea7854a
commit
743e902e85
2 changed files with 2 additions and 10 deletions
|
@ -7,19 +7,12 @@
|
|||
- nslcd
|
||||
- libnss-ldapd
|
||||
- libpam-ldapd
|
||||
- nscd # local cache
|
||||
state: present
|
||||
register: apt_result
|
||||
retries: 3
|
||||
until: apt_result is succeeded
|
||||
|
||||
# Reduce LDAP load
|
||||
# For the moment it is broken on Stretch when using PHP7.3
|
||||
# - name: Install LDAP cache package
|
||||
# apt:
|
||||
# name: nscd
|
||||
# state: present
|
||||
# update_cache: true
|
||||
|
||||
# Configure /etc/nslcd.conf
|
||||
- name: Configure nslcd LDAP credentials
|
||||
template:
|
||||
|
@ -38,5 +31,4 @@
|
|||
- passwd
|
||||
- group
|
||||
- shadow
|
||||
- sudoers
|
||||
notify: Restart nslcd service
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
# Install and configure main LDAP tools
|
||||
- include_tasks: 0_install_ldap.yml
|
||||
- include_tasks: install_ldap.yml
|
||||
|
||||
# Filter who can access server and sudo on groups
|
||||
- include_tasks: 1_group_security.yml
|
||||
|
|
Loading…
Reference in a new issue