2015-06-01 13:49:05 +02:00
|
|
|
{% if ansible_distribution_version == '14.04' %}
|
2015-05-24 23:15:49 +02:00
|
|
|
{% 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 %}
|
2015-06-01 13:49:05 +02:00
|
|
|
{% 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 %}
|
2015-08-23 12:22:36 +02:00
|
|
|
|
|
|
|
{% 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 %}
|