From ccba8683903ae3e90e8131f6f06474283d0cfa39 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Tue, 12 Jan 2016 14:40:09 +0100 Subject: [PATCH] Improve checks SSL/TLS + vhost --- tasks/vhost.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/vhost.yml b/tasks/vhost.yml index 58d8577..33ae7f7 100644 --- a/tasks/vhost.yml +++ b/tasks/vhost.yml @@ -1,5 +1,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 + with_items: nginx_vhosts + - name: FILE | Create root directory file: > path={{ nginx_root }}