roles/nginx: Use utopic (14.10) nginx builds on 15.04

Upstream hasn't made 15.04 builds yet...

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-06-01 14:49:05 +03:00
parent 9aaad366f5
commit 16a0bb9086

View File

@ -1,5 +1,16 @@
{% if ansible_distribution_version == '14.04' %}
{% if nginx_version == "stable" %}
deb http://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx
{% elif nginx_version == "mainline" %}
deb http://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release }} nginx
{% 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 nginx_version == "stable" %}
deb http://nginx.org/packages/ubuntu/ utopic nginx
{% elif nginx_version == "mainline" %}
deb http://nginx.org/packages/mainline/ubuntu/ utopic nginx
{% endif %}
{% endif %}