From 4ff2ac1737a64b956aa193f6eb5ef013dd04f0eb Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 14 Apr 2017 16:07:02 +0300 Subject: [PATCH] roles/nginx: Update comment about nginx versions Version 1.12.x is now stable and 1.13.x is now mainline. See: https://www.nginx.com/blog/nginx-1-12-1-13-released/ --- roles/nginx/templates/nginx_org_sources.list.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/nginx/templates/nginx_org_sources.list.j2 b/roles/nginx/templates/nginx_org_sources.list.j2 index 46d09aa..1ab55ee 100644 --- a/roles/nginx/templates/nginx_org_sources.list.j2 +++ b/roles/nginx/templates/nginx_org_sources.list.j2 @@ -8,10 +8,10 @@ deb http://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release } {% endif %} {% endif %} -{% if ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie' %} +{% if ansible_distribution == 'Debian' %} {% if nginx_version == "stable" %} -deb http://nginx.org/packages/debian/ jessie nginx +deb http://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx {% elif nginx_version == "mainline" %} -deb http://nginx.org/packages/mainline/debian/ jessie nginx +deb http://nginx.org/packages/mainline/debian/ {{ ansible_distribution_release }} nginx {% endif %} {% endif %}