Restructured openldap tasks

This commit is contained in:
2025-07-14 00:31:47 +02:00
parent 56f6a2dc3b
commit f012b4fc78
7 changed files with 81 additions and 70 deletions

View File

@@ -0,0 +1,11 @@
- name: "Create LDIF files at {{ ldif_host_path }}{{ folder }}"
template:
src: "{{ item }}"
dest: "{{ ldif_host_path }}{{ folder }}/{{ item | basename | regex_replace('\\.j2$', '') }}"
mode: '770'
loop: >-
{{
lookup('fileglob', role_path ~ '/templates/ldif/' ~ folder ~ '/*.j2', wantlist=True)
| sort
}}
notify: "Import {{ folder }} LDIF files"