diff --git a/README.md b/README.md index 599ebb039cac245edc00f5f6ae409c73c435e50f..a720e0d390898e12ff0ef99a9d30e8d14ee9f0b9 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ The variable `certbot_install_from_source` controls whether to install Certbot f certbot_auto_renew: true certbot_auto_renew_user: "{{ ansible_user | default(lookup('env', 'USER')) }}" - certbot_auto_renew_hour: 3 - certbot_auto_renew_minute: 30 + certbot_auto_renew_hour: "3" + certbot_auto_renew_minute: "30" certbot_auto_renew_options: "--quiet --no-self-upgrade" By default, this role configures a cron job to run under the provided user account at the given hour and minute, every day. The defaults run `certbot renew` (or `certbot-auto renew`) via cron every day at 03:30:00 by the user you use in your Ansible playbook. It's preferred that you set a custom user/hour/minute so the renewal is during a low-traffic period and done by a non-root user account. @@ -91,8 +91,8 @@ None. vars: certbot_auto_renew_user: your_username_here - certbot_auto_renew_minute: 20 - certbot_auto_renew_hour: 5 + certbot_auto_renew_minute: "20" + certbot_auto_renew_hour: "5" roles: - geerlingguy.certbot diff --git a/defaults/main.yml b/defaults/main.yml index 3186d8e17cc03febe0120c1748000679552b31ad..7002b26b1eda87778e841487c96fdebaad6e76ff 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -2,8 +2,8 @@ # Certbot auto-renew cron job configuration (for certificate renewals). certbot_auto_renew: true certbot_auto_renew_user: "{{ ansible_user | default(lookup('env', 'USER')) }}" -certbot_auto_renew_hour: 3 -certbot_auto_renew_minute: 30 +certbot_auto_renew_hour: "3" +certbot_auto_renew_minute: "30" certbot_auto_renew_options: "--quiet --no-self-upgrade" # Parameters used when creating new Certbot certs.