tls: add script to restart slapd when renweing Le certificate
This commit is contained in:
3
files/le_restart_slapd.sh
Normal file
3
files/le_restart_slapd.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
/bin/systemctl restart slapd
|
||||||
@@ -194,6 +194,13 @@
|
|||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /root/ssl.ldif
|
path: /root/ssl.ldif
|
||||||
state: absent
|
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
|
when: ldap_have_ssl
|
||||||
|
|
||||||
- name: configure ldap aliases - 0/1
|
- name: configure ldap aliases - 0/1
|
||||||
|
|||||||
Reference in New Issue
Block a user