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
|
- nslcd
|
||||||
- libnss-ldapd
|
- libnss-ldapd
|
||||||
- libpam-ldapd
|
- libpam-ldapd
|
||||||
|
- nscd # local cache
|
||||||
state: present
|
state: present
|
||||||
register: apt_result
|
register: apt_result
|
||||||
retries: 3
|
retries: 3
|
||||||
until: apt_result is succeeded
|
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
|
# Configure /etc/nslcd.conf
|
||||||
- name: Configure nslcd LDAP credentials
|
- name: Configure nslcd LDAP credentials
|
||||||
template:
|
template:
|
||||||
|
@ -38,5 +31,4 @@
|
||||||
- passwd
|
- passwd
|
||||||
- group
|
- group
|
||||||
- shadow
|
- shadow
|
||||||
- sudoers
|
|
||||||
notify: Restart nslcd service
|
notify: Restart nslcd service
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
# Install and configure main LDAP tools
|
# 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
|
# Filter who can access server and sudo on groups
|
||||||
- include_tasks: 1_group_security.yml
|
- include_tasks: 1_group_security.yml
|
||||||
|
|
Loading…
Reference in a new issue