mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-03-30 11:52:09 +07:00
Fix variable check
This commit is contained in:
@@ -2,7 +2,10 @@
|
|||||||
|
|
||||||
- name: FAIL | Check vhost and SSL/TLS support
|
- 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] }}"
|
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
|
with_items: nginx_vhosts
|
||||||
|
|
||||||
- name: FILE | Create root directory
|
- name: FILE | Create root directory
|
||||||
|
|||||||
Reference in New Issue
Block a user