Optimized openldap role

This commit is contained in:
2025-07-14 12:00:18 +02:00
parent bfd1a2ee70
commit 67122800f3
11 changed files with 56 additions and 44 deletions

View File

@@ -22,14 +22,14 @@
name: "{{ applications | get_app_conf(application_id, 'network.name', True) }}"
state: present
ipam_config:
- subnet: "{{ networks.local['svc-db-openldap'].subnet }}"
- subnet: "{{ networks.local[application_id].subnet }}"
- meta: flush_handlers
- name: "Wait for LDAP to be available"
wait_for:
host: "127.0.0.1"
port: "{{ ports.localhost.ldap['svc-db-openldap'] }}"
port: "{{ ports.localhost.ldap[application_id] }}"
delay: 5
timeout: 120
state: started
@@ -40,12 +40,12 @@
- applications | get_app_conf(application_id, 'network.local', True)
- applications | get_app_conf(application_id, 'provisioning.credentials', True)
- name: "create directory {{ldif_host_path}}{{item}}"
- name: "create directory {{openldap_ldif_host_path}}{{item}}"
file:
path: "{{ldif_host_path}}{{item}}"
path: "{{openldap_ldif_host_path}}{{item}}"
state: directory
mode: 0755
loop: "{{ldif_types}}"
loop: "{{openldap_ldif_types}}"
- name: "Import LDIF Configuration"
include_tasks: ldifs_creation.yml