diff --git a/roles/ldap-client/tasks/0_install_ldap.yml b/roles/ldap-client/tasks/install_ldap.yml similarity index 77% rename from roles/ldap-client/tasks/0_install_ldap.yml rename to roles/ldap-client/tasks/install_ldap.yml index 21dd6f6..5e8dae3 100644 --- a/roles/ldap-client/tasks/0_install_ldap.yml +++ b/roles/ldap-client/tasks/install_ldap.yml @@ -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 diff --git a/roles/ldap-client/tasks/main.yml b/roles/ldap-client/tasks/main.yml index c367dd6..8599950 100644 --- a/roles/ldap-client/tasks/main.yml +++ b/roles/ldap-client/tasks/main.yml @@ -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