27 lines
1.1 KiB
Django/Jinja
27 lines
1.1 KiB
Django/Jinja
{{ ansible_managed | comment }}
|
|
|
|
{% if ansible_distribution == 'Ubuntu' %}
|
|
{% if nginx_version == "stable" %}
|
|
deb [arch=amd64] https://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx
|
|
{% elif nginx_version == "mainline" %}
|
|
deb [arch=amd64] https://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release }} nginx
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if ansible_distribution == 'Debian' and ansible_distribution_release == 'buster' %}
|
|
# there are no tarsnap packages for Debian 10 "buster" yet, so use Debian 9's
|
|
{% if nginx_version == "stable" %}
|
|
deb [arch=amd64] https://nginx.org/packages/debian/ stretch nginx
|
|
{% elif nginx_version == "mainline" %}
|
|
deb [arch=amd64] https://nginx.org/packages/mainline/debian/ stretch nginx
|
|
{% endif %}
|
|
|
|
{# else, distribution is not Debian buster #}
|
|
{% else %}
|
|
{% if nginx_version == "stable" %}
|
|
deb [arch=amd64] https://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx
|
|
{% elif nginx_version == "mainline" %}
|
|
deb [arch=amd64] https://nginx.org/packages/mainline/debian/ {{ ansible_distribution_release }} nginx
|
|
{% endif %}
|
|
{% endif %}
|