mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-09-13 17:41:10 +02:00
* Add Cloudflare support * Ensure cron install * linting * Add Redhat cron install * Update vars
14 lines
425 B
YAML
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 }}"
|