From b5ff8d488611e7ce91621bf319fe3f69c9539ceb Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Sat, 21 Jan 2017 15:31:40 -0600 Subject: [PATCH] Update README regarding example usage. --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6c55140..0786cf9 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,12 @@ None. ## Example Playbook - hosts: servers + + vars: + certbot_auto_renew_user: your_username_here + certbot_auto_renew_minute: 20 + certbot_auto_renew_hour: 5 + roles: - geerlingguy.letsencrypt @@ -45,9 +51,7 @@ After installation, you can create certificates using the `certbot-auto` script, # Generate certs, but don't modify Apache configuration (safer). /opt/certbot/certbot-auto --apache certonly -To set up renewals, you should run the following command periodically (e.g. once or twice per day): - - /opt/certbot/certbot-auto renew --quiet --no-self-upgrade +By default, this role adds a cron job that will renew all installed certificates once per day at the hour and minute of your choosing. You can test the auto-renewal (without actually renewing the cert) with the command: