33 lines
737 B
YAML
33 lines
737 B
YAML
- 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
|
|
|
|
- name: prepare docker-compose.yml
|
|
template:
|
|
src: "{{ item }}"
|
|
dest: /opt/{{ docker_openldap_service_id }}/
|
|
with_items:
|
|
- docker-compose.yml
|
|
notify: docker-compose-up
|
|
|
|
|