Files
env-ansible/tasks/server/cron/certbot.yml
T
2026-10-02 11:16:42 -07:00

17 lines
401 B
YAML

---
# Ensure certbot renews certs on time.
- name: Server | Cron | Certbot | Find Executable
ansible.builtin.shell: which certbot
register: certbot
- name: Server | Cron | Certbot | Monthly Renewal
cron:
user: root
name: Monthly Renewal
job: "{{ certbot.stdout }} renew"
special_time: weekly
state: present
disabled: false
when: certbot and certbot.stdout is defined