roles/nginx: Update sources.list template for Ubuntu 16.04

Use Ubuntu 15.10 builds for now.
This commit is contained in:
Alan Orth 2016-04-15 12:28:34 +03:00
parent 419d0c7e9a
commit f90eff6b1a
1 changed files with 5 additions and 4 deletions

View File

@ -6,12 +6,13 @@ deb http://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release }
{% endif %}
{% endif %}
{% if ansible_distribution_version == '15.04' %}
# There are no nginx.org builds for Ubuntu 15.04 (vivid) yet, so use 14.10 (utopic)
{% if ansible_distribution_version == '16.04' %}
# There are no nginx.org builds for Ubuntu 16.04 (xenial) yet, so use 15.10 (wily)
{% if nginx_version == "stable" %}
deb http://nginx.org/packages/ubuntu/ utopic nginx
deb http://nginx.org/packages/ubuntu/ wily nginx
{% elif nginx_version == "mainline" %}
deb http://nginx.org/packages/mainline/ubuntu/ utopic nginx
# There are no "mainline" nginx.org builds for Ubuntu 16.04 (xenial) yet, so use 15.10 (wily)
deb http://nginx.org/packages/mainline/ubuntu/ wily nginx
{% endif %}
{% endif %}