Add components to help keep certs up to date.

This commit is contained in:
2021-04-07 20:32:12 -05:00
parent 79916fb743
commit 81f11b72de
8 changed files with 31 additions and 5 deletions

View File

@ -0,0 +1,15 @@
---
# Ensure certbot renews certs on time.
- name: Server | Cron | Certbot | Find Executable
shell: which certbot
register: certbot
- name: Server | Cron | Certbot | Monthly Renewal
cron:
user: root
name: Monthly Renewal
job: "{{ certbot.stdout }} renew && reboot"
special_time: monthly
state: present
disabled: no