Make loading of custom ldifs work

This commit is contained in:
Lukáš Kucharczyk 2021-05-16 23:46:45 +02:00
parent 8f4cf4883e
commit c93f579af9
No known key found for this signature in database
GPG Key ID: 65524498C0196B64
1 changed files with 8 additions and 7 deletions

View File

@ -7,17 +7,17 @@
- "{{ data_folder }}/openldap" - "{{ data_folder }}/openldap"
- "{{ data_folder }}/openldap/data" - "{{ data_folder }}/openldap/data"
- "{{ data_folder }}/openldap/slapd.d" - "{{ data_folder }}/openldap/slapd.d"
# - "{{ data_folder }}/openldap/ldifs" - "{{ data_folder }}/openldap/ldifs"
# - name: copy slapd.conf # - name: copy slapd.conf
# template: # template:
# src: slapd.conf.j2 # src: slapd.conf.j2
# dest: "{{ data_folder }}/openldap/slapd.d/slapd.conf" # dest: "{{ data_folder }}/openldap/slapd.d/slapd.conf"
# mode: '0755' # mode: '0755'
# - name: copy user ldif - name: copy user ldif
# template: template:
# src: lukas.ldif.j2 src: lukas.ldif.j2
# dest: "{{ data_folder }}/openldap/ldifs/lukas.ldif" dest: "{{ data_folder }}/openldap/ldifs/lukas.ldif"
# mode: '0755' mode: '0755'
- name: run container - name: run container
docker_container: docker_container:
name: "openldap" name: "openldap"
@ -31,10 +31,11 @@
volumes: volumes:
- "{{ data_folder }}/openldap/data:/var/lib/ldap" - "{{ data_folder }}/openldap/data:/var/lib/ldap"
- "{{ data_folder }}/openldap/slapd.d:/etc/ldap/slapd.d" - "{{ data_folder }}/openldap/slapd.d:/etc/ldap/slapd.d"
# - "{{ data_folder }}/openldap/ldifs:/container/service/slapd/assets/config/bootstrap/ldif/custom" - "{{ data_folder }}/openldap/ldifs:/container/service/slapd/assets/config/bootstrap/ldif/custom"
env: env:
LDAP_ORGANISATION: "Homelab" LDAP_ORGANISATION: "Homelab"
LDAP_DOMAIN: "kucharczyk.xyz" LDAP_DOMAIN: "kucharczyk.xyz"
LDAP_REMOVE_CONFIG_AFTER_SETUP: "false"
LDAP_ADMIN_PASSWORD: !vault | LDAP_ADMIN_PASSWORD: !vault |
$ANSIBLE_VAULT;1.1;AES256 $ANSIBLE_VAULT;1.1;AES256
35623735376134353839323136623133393035343162363366643632376262393539653736326431 35623735376134353839323136623133393035343162363366643632376262393539653736326431