--- - name: Configure ldap authentication block: - apt: name: libnss-ldapd - template: src: etc/nslcd.conf dest: /etc/nslcd.conf notify: restart nslcd - copy: src: etc/pam.d/common-session dest: /etc/pam.d/common-session - copy: src: etc/nsswitch.conf dest: /etc/nsswitch.conf vars: # ldapsearch -b o=epfl,c=ch -H ldaps://scoldap.epfl.ch/ -LLL -x "cn=hpc-cluster-users" uniqueIdentifier user_group: S14274 tags: - ldap - packages