25 lines
954 B
Django/Jinja
25 lines
954 B
Django/Jinja
{% 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 %}
|
|
|
|
{% 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 %}
|