From a49d4e63a1b97968327195450bd9fe0058c8d920 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Mon, 26 Aug 2019 11:56:43 -0500 Subject: [PATCH] Fixes #91: Warnings for ints in string fields in Ansible 2.8.x. --- README.md | 8 ++++---- defaults/main.yml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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.