From 740e5195a0d5063e4484a5ce1c363df08591bae3 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 13 Sep 2016 14:53:12 +0300 Subject: [PATCH] roles/nginx: Add new variable "needs_php" Used to indicate if a vhost needs PHP configuration or not, like for a static site. Set in the hosts's nginx_vhosts block. Defaults to "False" if unset. --- roles/nginx/templates/vhost.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/nginx/templates/vhost.conf.j2 b/roles/nginx/templates/vhost.conf.j2 index 513822d..2a73298 100644 --- a/roles/nginx/templates/vhost.conf.j2 +++ b/roles/nginx/templates/vhost.conf.j2 @@ -6,6 +6,7 @@ {# assume optional features are off unless a vhost explicitly sets them #} {% set enable_hsts = item.enable_hsts | default(False) %} {% set has_wordpress = item.has_wordpress | default(False) %} +{% set needs_php = item.needs_php | default(False) %} # http -> https vhost server {