ansible-role-docker_openldap/tasks/main.yml

34 lines
737 B
YAML
Raw Normal View History

2022-08-05 14:18:44 +02:00
- name: docker directory
file:
path: /opt/{{ docker_openldap_service_id }}/
state: directory
- name: custom schemas directory
file:
path: /opt/{{ docker_openldap_service_id }}/custom-schemas
state: directory
- name: certificates directory
file:
path: /opt/{{ docker_openldap_service_id }}/certs
state: directory
- name: copy custom schemas
copy:
src: "{{ item }}"
dest: /opt/{{ docker_openldap_service_id }}/custom-schemas/
with_items:
- rfc2307bis.ldif
- owncloud.ldif
- postfix-book.ldif
2022-08-05 14:18:44 +02:00
- name: prepare docker-compose.yml
template:
src: "{{ item }}"
dest: /opt/{{ docker_openldap_service_id }}/
with_items:
- docker-compose.yml
notify: docker-compose-up