From 2f6f2d4362c34d943aaa3f9823675486fd638c28 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Tue, 12 Jan 2016 15:01:01 +0100 Subject: [PATCH] Fix variable check --- tasks/vhost.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/vhost.yml b/tasks/vhost.yml index 33ae7f7..2514a0b 100644 --- a/tasks/vhost.yml +++ b/tasks/vhost.yml @@ -2,7 +2,10 @@ - name: FAIL | Check vhost and SSL/TLS support fail: msg="Missmatch configuration for vhost {{ item.name if item.name is string else item.name[0] }}" - when: 'https' in item.proto and item.ssl_name is not defined + when: > + item.proto is defined and + 'https' in item.proto and + item.ssl_name is not defined with_items: nginx_vhosts - name: FILE | Create root directory