r/postgresql-cert: ACME certificates using certbot

This role can be used to get a server certificate for PostgreSQL from an
ACME CA using `certbot`.  It fetches the initial certificate and copies
it to the PostgreSQL configuration directory.  It also sets up a
post-renewal hook script that copies updated certificates and reload
the server.
This commit is contained in:
2024-06-28 20:34:40 -05:00
parent 9e742dc217
commit 99c309240c
4 changed files with 155 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
- name: reload systemd
systemd:
daemon_reload: true
- name: restart certbot-renew timer
systemd:
name: certbot-renew.timer
state: restarted