diff --git a/README.md b/README.md index 599ebb0..a720e0d 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 3186d8e..7002b26 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.