From 2a78c5cf595f354ba9e816a6c4f0a1cfbb286466 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 17 Aug 2016 12:27:24 +0300 Subject: [PATCH] roles/nginx: Add sanity check for use_letsencrypt variable Not all hosts will have this, so this task will flat out fail. We better check to see if it exists before we try to use it. ;) --- roles/nginx/tasks/vhosts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nginx/tasks/vhosts.yml b/roles/nginx/tasks/vhosts.yml index 714f737..7216d46 100644 --- a/roles/nginx/tasks/vhosts.yml +++ b/roles/nginx/tasks/vhosts.yml @@ -33,7 +33,7 @@ tags: wordpress - include: letsencrypt.yml - when: use_letsencrypt == 'yes' + when: use_letsencrypt is defined and use_letsencrypt == 'yes' tags: letsencrypt # vim: set ts=2 sw=2: