2016-04-27 14:04:17 +02:00
|
|
|
{% if ansible_distribution == 'Ubuntu' %}
|
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 %}
|
|
|
|
|
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 %}
|