From a8287a712b3aabf73c9e3136fff555a3970f202a Mon Sep 17 00:00:00 2001 From: Jesper Hess Nielsen Date: Fri, 22 Jul 2022 19:48:09 +0200 Subject: [PATCH] Add restart policy to OpenLDAP containers --- roles/docker/tasks/services/openldap.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/docker/tasks/services/openldap.yml b/roles/docker/tasks/services/openldap.yml index 01cdad8..b08fade 100644 --- a/roles/docker/tasks/services/openldap.yml +++ b/roles/docker/tasks/services/openldap.yml @@ -20,6 +20,7 @@ image: osixia/openldap:1.5.0 tty: true interactive: true + restart_policy: unless-stopped volumes: - "{{ ldap.volume_folder }}/var/lib/ldap:/var/lib/ldap" - "{{ ldap.volume_folder }}/etc/slapd.d:/etc/ldap/slapd.d" @@ -58,6 +59,7 @@ docker_container: name: phpldapadmin image: osixia/phpldapadmin:0.9.0 + restart_policy: unless-stopped networks: - name: external_services - name: ldap -- 2.43.4