From ec4f939b77c6f79857db4ee4a5d411cfcdff5131 Mon Sep 17 00:00:00 2001 From: nd Date: Sat, 9 May 2020 23:08:22 +0200 Subject: [PATCH] fix vhost creation --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index d9702b6..d974a6a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -70,7 +70,7 @@ template: src: vhost.conf.j2 dest: "/etc/nginx/sites-available/{{ item.key }}" - with_dict: "{{ nginx.vhosts }}" + with_dict: "{{ {}|combine((nginx_forcessl_vhost if nginx.force_ssl else {}), nginx.vhosts, recursive=True) }}" notify: - restart nginx