mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-01 23:04:15 +02:00
10 lines
381 B
YAML
10 lines
381 B
YAML
# In own task file for easier looping
|
|
|
|
- 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) }}"
|
|
notify: Import LDIF files
|