Refractor ldap

This commit is contained in:
Alexandre Iooss 2019-08-29 07:03:05 +02:00
parent e15ea7854a
commit 743e902e85
No known key found for this signature in database
GPG key ID: 6C79278F3FCDCC02
2 changed files with 2 additions and 10 deletions

View file

@ -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

View file

@ -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