notify: restart nscd
# on deploie le ldif de l'ecole
-- name: Deploy ldap content
+- name: Deploy ldap base content
+ copy: src=files/ldap/alim-ldap-base.ldif dest=/root/alim-ldap-base.ldif
+ owner=root group=root mode=0644
+
+- name: Deploy ldap specific content
copy: src=files/ldap/alim-ldap-{{ abbrv }}.ldif dest=/root/alim-ldap-{{ abbrv }}.ldif
owner=root group=root mode=0644
- name: Create ldap users
- pause: prompt="Run `/usr/bin/ldapmodify -x -h localhost -D "{{ slapd_adminuid }}" -w "{{ slapd_adminpwd }}" -c -af /root/alim-ldap-"{{ abbrv }}".ldif` to create users"
+ pause: prompt="Run `/usr/bin/ldapmodify -x -h localhost -D "{{ slapd_adminuid }}" -w "{{ slapd_adminpwd }}" -c -af /root/alim-ldap-<files>.ldif` (<files> being the 2 files copied in the last 2 tasks) to create users"