From 94a2cf87a3a7f977e4179652a84dc2f7a92c2a4c Mon Sep 17 00:00:00 2001 From: Nikolaos Kakouros Date: Wed, 6 Sep 2017 23:35:12 +0200 Subject: [PATCH] Reads ansible user from environment --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 7f6f0d3..819dd2a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,7 +1,7 @@ --- # Certbot auto-renew cron job configuration (for certificate renewals). certbot_auto_renew: true -certbot_auto_renew_user: "{{ ansible_user }}" +certbot_auto_renew_user: "{{ lookup('env', 'USER') }}" certbot_auto_renew_hour: 3 certbot_auto_renew_minute: 30