add copy cert and keys
This commit is contained in:
@@ -1,3 +1,21 @@
|
|||||||
|
- name: Copy TLS cert into place
|
||||||
|
copy:
|
||||||
|
src: "/root/.lego/certificates/{{ inventory_hostname | default(cert_domain) }}.crt"
|
||||||
|
dest: /etc/openldap/certs/ldap.crt
|
||||||
|
owner: ldap
|
||||||
|
group: ldap
|
||||||
|
mode: 0600
|
||||||
|
remote_src: true
|
||||||
|
|
||||||
|
- name: Copy cert private key into place
|
||||||
|
copy:
|
||||||
|
src: "/root/.lego/certificates/{{ inventory_hostname | default(cert_domain) }}.key"
|
||||||
|
dest: /etc/openldap/certs/ldap.key
|
||||||
|
owner: ldap
|
||||||
|
group: ldap
|
||||||
|
mode: 0600
|
||||||
|
remote_src: true
|
||||||
|
|
||||||
- name: Configure TLS cert
|
- name: Configure TLS cert
|
||||||
community.general.ldap_attrs:
|
community.general.ldap_attrs:
|
||||||
dn: cn=config
|
dn: cn=config
|
||||||
|
|||||||
Reference in New Issue
Block a user