mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
16 lines
488 B
YAML
16 lines
488 B
YAML
---
|
|
- name: Create certbot renewal script.
|
|
template:
|
|
src: files/certbot-auto-renew-script.j2
|
|
dest: "{{ certbot_auto_renew_script_path }}"
|
|
owner: "{{ certbot_auto_renew_user }}"
|
|
mode: 0744
|
|
|
|
- name: Add cron job for certbot renewal (if configured).
|
|
cron:
|
|
name: Certbot automatic renewal.
|
|
job: "{{ certbot_auto_renew_script_path }}"
|
|
minute: "{{ certbot_auto_renew_minute }}"
|
|
hour: "{{ certbot_auto_renew_hour }}"
|
|
user: "{{ certbot_auto_renew_user }}"
|