ansible/roles/docker/tasks/services/openldap.yml

24 lines
546 B
YAML

# vim: ft=yaml.ansible
---
- name: Create OpenLDAP volume folders
file:
name: "{{ services.openldap.volume_folder }}/{{ volume }}"
state: directory
loop:
- var/lib/ldap
- etc/slapd
- certs
loop_control:
loop_var: volume
- name: Upload Compose file for OpenLDAP
template:
src: compose-files/openldap.yml.j2
dest: "{{ services.openldap.volume_folder }}/docker-compose.yml"
- name: Deploy OpenLDAP
docker_compose:
project_src: "{{ services.openldap.volume_folder }}"
pull: true
state: present