Ensure default nginx vhost configuration is set up if none is provided

An empty string wouldn't trigger the default filter. Now it will.

Change-Id: I8aba0e515b697d82c8761629553cac54cea3befa
This commit is contained in:
David Moreau Simard 2019-03-18 17:11:01 -04:00
parent fe3e20d26a
commit 3a0c54c489
No known key found for this signature in database
GPG Key ID: CBEB466764A9E621

View File

@ -40,7 +40,7 @@
block:
- name: Set up the ARA API nginx vhost
template:
src: "{{ ara_api_frontend_vhost | default('ara-api.conf.j2') }}"
src: "{{ ara_api_frontend_vhost | default('ara-api.conf.j2', True) }}"
dest: "{{ ara_nginx_config_path }}/ara-api.conf"
notify:
- restart nginx
@ -58,7 +58,7 @@
block:
- name: Set up the ARA API nginx vhost
template:
src: "{{ ara_web_frontend_vhost | default('ara-web.conf.j2') }}"
src: "{{ ara_web_frontend_vhost | default('ara-web.conf.j2', True) }}"
dest: "{{ ara_nginx_config_path }}/ara-web.conf"
notify:
- restart nginx