2022-12-29 21:13:31 +00:00
|
|
|
# vim: ft=yaml.ansible
|
2019-01-26 16:54:45 +00:00
|
|
|
---
|
2023-09-30 16:15:27 +00:00
|
|
|
- name: Create OpenLDAP volume folders
|
2019-03-04 17:21:14 +00:00
|
|
|
file:
|
2022-11-26 08:15:18 +00:00
|
|
|
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
|
2019-01-26 16:54:45 +00:00
|
|
|
|
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"
|
2019-01-26 16:54:45 +00:00
|
|
|
|
2023-09-30 16:15:27 +00:00
|
|
|
- name: Deploy OpenLDAP
|
|
|
|
docker_compose:
|
|
|
|
project_src: "{{ services.openldap.volume_folder }}"
|
|
|
|
pull: true
|
|
|
|
state: present
|