From 5cd48e5b5c43c561addcc6a091de5948e00852aa Mon Sep 17 00:00:00 2001 From: Alessandro Fael Garcia Date: Mon, 19 Nov 2018 12:06:19 -0800 Subject: [PATCH] Fix HTML templating --- defaults/main.yml | 4 ++-- templates/www/index.html.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 1f715b4..1f9b464 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -118,14 +118,14 @@ nginx_ssl_crt_upload_dest: /etc/ssl/certs/ nginx_ssl_key_upload_src: ssl/*.key nginx_ssl_key_upload_dest: /etc/ssl/private/ -# Enable crating dynamic templated NGINX HTMK demo websites. +# Enable creating dynamic templated NGINX HTML demo websites. nginx_html_demo_template_enable: false nginx_html_demo_template: default: template_file: www/index.html.j2 html_file_name: index.html html_file_location: /usr/share/nginx/html - app_name: default + html_app_name: Default # Enable creating dynamic templated NGINX configuration files. # Defaults are the values found in a fresh NGINX installation. diff --git a/templates/www/index.html.j2 b/templates/www/index.html.j2 index 4e92ddf..c6ddd67 100644 --- a/templates/www/index.html.j2 +++ b/templates/www/index.html.j2 @@ -1,7 +1,7 @@ -Hello World - App {{ item.value.name }} +Hello World - {{ item.value.app_name }} App