2021-04-07 20:32:12 -05:00
|
|
|
---
|
|
|
|
# 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
|
2021-06-29 05:54:19 -05:00
|
|
|
job: "{{ certbot.stdout }} renew"
|
|
|
|
special_time: weekly
|
2021-04-07 20:32:12 -05:00
|
|
|
state: present
|
2021-07-13 07:55:37 -05:00
|
|
|
disabled: no
|
2021-07-13 08:01:16 -05:00
|
|
|
when: certbot is defined and certbot.stdout is defined
|