chore: jinja2 spacing, variable naming

This commit is contained in:
2026-02-04 12:20:38 +01:00
parent fb35a0acc6
commit 5dac2b5175
5 changed files with 18 additions and 11 deletions

View File

@@ -2,7 +2,7 @@
- name: Ensure config attributes are configured
community.general.ldap_attrs:
dn: "{{ openldap_config_dn }}"
attributes: "{{ { entry.key : entry.value } }}"
attributes: "{{ {entry.key: entry.value} }}"
state: exact
server_uri: "{{ openldap_socket_url }}"
loop: "{{ openldap_config_attributes | dict2items }}"
@@ -13,7 +13,7 @@
- name: Ensure config db attributes are configured
community.general.ldap_attrs:
dn: "{{ openldap_config_db_dn }}"
attributes: "{{ { entry.key: entry.value } }}"
attributes: "{{ {entry.key: entry.value} }}"
state: exact
server_uri: "{{ openldap_socket_url }}"
loop: "{{ openldap_config_db_attributes | dict2items }}"

View File

@@ -22,4 +22,3 @@
{{ openldap_container_restart_policy | default(omit, true) }}
healthcheck: "{{ openldap_container_healthcheck | default(omit, true) }}"
state: "{{ openldap_container_state }}"

View File

@@ -2,7 +2,7 @@
- name: Ensure additional schemas are mapped to container
ansible.builtin.set_fact:
openldap_init_container_volumes: >-2
{{ openldap_init_container_volumes + [ schema_mount ] }}
{{ openldap_init_container_volumes + [schema_mount] }}
vars:
schema_file: "{{ openldap_schema_path }}/{{ schema.name }}.ldif"
schema_mount: >-2