ansible-role-certbot/tasks/renew-cron.yml
Guilherme Balzana a6a9b7cf95 Add epel repository for snap install method
Remove the old cerbot package
2021-03-31 18:54:13 +01:00

10 lines
390 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'