Fix variable check

pull/14/head
Emilien Mantel 2016-01-12 15:01:01 +01:00
parent 53b9dc078e
commit 2f6f2d4362
1 changed files with 4 additions and 1 deletions

View File

@ -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