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 %}
|
|
|
|
|
2016-04-15 11:28:34 +02:00
|
|
|
{% if ansible_distribution_version == '16.04' %}
|
|
|
|
# There are no nginx.org builds for Ubuntu 16.04 (xenial) yet, so use 15.10 (wily)
|
2015-06-01 13:49:05 +02:00
|
|
|
{% if nginx_version == "stable" %}
|
2016-04-15 11:28:34 +02:00
|
|
|
deb http://nginx.org/packages/ubuntu/ wily nginx
|
2015-06-01 13:49:05 +02:00
|
|
|
{% elif nginx_version == "mainline" %}
|
2016-04-15 11:28:34 +02:00
|
|
|
# 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
|
2015-06-01 13:49:05 +02:00
|
|
|
{% 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 %}
|