tls: add script to restart slapd when renweing Le certificate

This commit is contained in:
2025-08-22 21:39:40 +02:00
parent f6b509505e
commit b0e95287b4
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
#! /bin/bash
/bin/systemctl restart slapd

View File

@@ -194,6 +194,13 @@
ansible.builtin.file:
path: /root/ssl.ldif
state: absent
- name: restart slapd upon certificate renewal
ansible.builtin.copy:
src: le_restart_slapd.sh
dest: /etc/letsencrypt/renewal-hooks/post/service_slapd.sh
mode: 0700
when: ldap_have_ssl
- name: configure ldap aliases - 0/1