Sys-ctl-cln-certs Role¶
Description: No description available
Variables¶
author: Kevin Veen-Birkenbach
description: Automates the revocation and deletion of unused Let’s Encrypt certificates
license: Infinito.Nexus NonCommercial License
license_url: https://s.infinito.nexus/license
company: Kevin Veen-Birkenbach
Consulting & Coaching Solutions https://www.veen.world
min_ansible_version: 2.9
platforms: [{‘name’: ‘Archlinux’, ‘versions’: [‘rolling’]}]
galaxy_tags: [‘certbot’, ‘ssl’, ‘cleanup’, ‘automation’, ‘systemd’]
repository: https://github.com/kevinveenbirkenbach/certreap
issue_tracker_url: https://github.com/kevinveenbirkenbach/certreap/issues
documentation: https://github.com/kevinveenbirkenbach/certreap#readme
README¶
Certbot Reaper¶
Description¶
This Ansible role automates the detection, revocation and deletion of
unused Let’s Encrypt certificates. It leverages the
`certreap <https://github.com/kevinveenbirkenbach/certreap>`__ tool
to identify certificates no longer referenced by any active NGINX
configuration and removes them automatically.
Overview¶
Installs the
certreapcleanup tool using thepkgmgr-installroleDeploys and configures a systemd unit
(Optionally) Sets up a recurring cleanup via a systemd timer using the
sys-timerroleIntegrates with
sys-ctl-alm-composeto send failure notificationsEnsures idempotent execution with a
run_once_sys_ctl_cln_certsflag
Features¶
- Certificate Cleanup Tool InstallationUses
pkgmgr-installto install thecertreapbinary. - Systemd Service ConfigurationDeploys service and reloads/restarts it on changes.
- Systemd Timer SchedulingOptionally wires in a timer via the
sys-timerrole, controlled by theon_calendar_cleanup_certsvariable. - Smart Execution LogicPrevents multiple runs in one play by setting a
run_once_sys_ctl_cln_certsfact. - Failure NotificationTriggers service on failure.