fix vhost creation

This commit is contained in:
nd 2020-05-09 23:08:22 +02:00
parent 94bd2eabac
commit ec4f939b77
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -70,7 +70,7 @@
template: template:
src: vhost.conf.j2 src: vhost.conf.j2
dest: "/etc/nginx/sites-available/{{ item.key }}" 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: notify:
- restart nginx - restart nginx