fix(ldap): allow importing schemes which are included in the container already

This commit is contained in:
transcaffeine 2021-05-09 13:22:29 +02:00
parent 0de5fd8cda
commit 9e0508d006
No known key found for this signature in database
GPG key ID: 03624C433676E465

View file

@ -21,7 +21,7 @@
content: "{{ schema.content }}"
dest: "{{ ldap_base_path }}/{{ schema.name }}"
mode: 0644
when: ldap_needs_init|bool
when: ldap_needs_init|bool and schema.content is defined
loop: "{{ ldap_additional_schemas }}"
loop_control:
loop_var: schema
@ -36,7 +36,7 @@
schema_file: "{{ ldap_base_path }}/{{ schema.name }}"
volume_mount:
- "{{ schema_file }}:{{ ldap_container_schema_path }}/{{ schema.name }}:ro"
when: ldap_needs_init|bool
when: ldap_needs_init|bool and schema.content is defined
loop: "{{ ldap_additional_schemas }}"
loop_control:
loop_var: schema