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

24 lines
546 B
YAML
Raw Normal View History

# vim: ft=yaml.ansible
---
2023-09-30 16:15:27 +00:00
- name: Create OpenLDAP volume folders
2019-03-04 17:21:14 +00:00
file:
name: "{{ services.openldap.volume_folder }}/{{ volume }}"
2019-03-04 17:21:14 +00:00
state: directory
loop:
2023-09-30 16:15:27 +00:00
- var/lib/ldap
- etc/slapd
- certs
2019-03-04 17:21:14 +00:00
loop_control:
loop_var: volume
2023-09-30 16:15:27 +00:00
- name: Upload Compose file for OpenLDAP
template:
src: compose-files/openldap.yml.j2
dest: "{{ services.openldap.volume_folder }}/docker-compose.yml"
2023-09-30 16:15:27 +00:00
- name: Deploy OpenLDAP
docker_compose:
project_src: "{{ services.openldap.volume_folder }}"
pull: true
state: present