15 lines
346 B
YAML
15 lines
346 B
YAML
---
|
|
# 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 |