mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
17 lines
559 B
YAML
17 lines
559 B
YAML
---
|
|
- 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 }}"
|
|
when: certbot_install_method == 'package' or certbot_install_method == 'source'
|
|
|
|
- name: Enable systemd timer when using snap
|
|
systemd:
|
|
name: snap.certbot.renew.timer
|
|
state: started
|
|
enabled: yes
|
|
when: certbot_install_method == 'snap'
|