mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 23:38:13 +02:00
Optimized openldap role
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user