ansible-role-certbot/tasks/renew-cron.yml
Simon Caron d408884f18
Add Cloudflare DNS-01 Challenge
* Add Cloudflare support

* Ensure cron install

* linting

* Add Redhat cron install

* Update vars
2025-08-19 20:56:49 -04:00

14 lines
425 B
YAML

---
- name: Install cron package (if not present).
package:
name: "{{ certbot_cron_package }}"
state: present
- name: Add cron job for certbot renewal (if configured).
cron:
name: Certbot automatic renewal.
job: "{{ certbot_script }} renew {{ certbot_auto_renew_options }}"
minute: "{{ certbot_auto_renew_minute }}"
hour: "{{ certbot_auto_renew_hour }}"
user: "{{ certbot_auto_renew_user }}"