Manages PHP minor versions

This commit is contained in:
Emilien Mantel
2016-08-11 11:30:26 +02:00
parent a9ad41b40f
commit 88c6c5a043
9 changed files with 30 additions and 28 deletions

View File

@@ -2,9 +2,9 @@
# {{ ansible_managed }}
#
{% if nginx_php5 %}
upstream {{ nginx_upstream_php5 }} {
{% for item in nginx_php5_sockets %}
{% if nginx_php56 %}
upstream {{ nginx_upstream_php56 }} {
{% for item in nginx_php56_sockets %}
{% if item.unix_socket is defined %}
server unix:{{ item.unix_socket }} weight={{ item.weight | default('1') }};
{% else %}
@@ -14,9 +14,9 @@ upstream {{ nginx_upstream_php5 }} {
}
{% endif %}
{% if nginx_php7 %}
upstream {{ nginx_upstream_php7 }} {
{% for item in nginx_php7_sockets %}
{% if nginx_php70 %}
upstream {{ nginx_upstream_php70 }} {
{% for item in nginx_php70_sockets %}
{% if item.unix_socket is defined %}
server unix:{{ item.unix_socket }} weight={{ item.weight | default('1') }};
{% else %}