- name: "Detecting existence of memberof overlay for groupOfNames"
shell: "find '{{ slapd_cfg_dir }}/cn=config/{{ main_database_rdn.stdout }}' -type f -iname 'olcOverlay=*memberof.ldif' -print0 | xargs --null grep -iPl '^olcMemberOfGroupOC:\\s+groupOfNames\\s*$'"
changed_when: False
+ ignore_errors: True
register: ovl_memberof_groupOfNames_exists
- name: "Applying memberof overlay for groupOfNames"
- name: "Detecting existence of memberof overlay for groupOfUniqueNames"
shell: "find '{{ slapd_cfg_dir }}/cn=config/{{ main_database_rdn.stdout }}' -type f -iname 'olcOverlay=*memberof.ldif' -print0 | xargs --null grep -iPl '^olcMemberOfGroupOC:\\s+groupOfUniqueNames\\s*$'"
changed_when: False
+ ignore_errors: True
register: ovl_memberof_groupOfUniqueNames_exists
- name: "Applying memberof overlay for groupOfUniqueNames"