diff --git a/roles/nginx/templates/nginx_org_packages_ubuntu.list.j2 b/roles/nginx/templates/nginx_org_packages_ubuntu.list.j2 index 441bd85..46405bf 100644 --- a/roles/nginx/templates/nginx_org_packages_ubuntu.list.j2 +++ b/roles/nginx/templates/nginx_org_packages_ubuntu.list.j2 @@ -14,3 +14,11 @@ deb http://nginx.org/packages/ubuntu/ utopic nginx deb http://nginx.org/packages/mainline/ubuntu/ utopic nginx {% endif %} {% endif %} + +{% if ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie' %} +{% if nginx_version == "stable" %} +deb http://nginx.org/packages/debian/ jessie nginx +{% elif nginx_version == "mainline" %} +deb http://nginx.org/packages/mainline/debian/ jessie nginx +{% endif %} +{% endif %}