roles/nginx: Use buster builds

nginx.org has buster builds now.
This commit is contained in:
Alan Orth 2019-07-08 18:43:43 +03:00
parent ca293289aa
commit 70e736bdc5
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -8,19 +8,11 @@ deb [arch=amd64] https://nginx.org/packages/ubuntu/ {{ ansible_distribution_rele
deb [arch=amd64] https://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release }} nginx deb [arch=amd64] https://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release }} nginx
{% endif %} {% endif %}
{% elif ansible_distribution == 'Debian' and ansible_distribution_release == 'buster' %} {% elif ansible_distribution == 'Debian' %}
# there are no tarsnap packages for Debian 10 "buster" yet, so use Debian 9's
{% if nginx_version == "stable" %} {% if nginx_version == "stable" %}
deb [arch=amd64] https://nginx.org/packages/debian/ stretch nginx deb [arch=amd64] https://nginx.org/packages/debian/ stretch nginx
{% elif nginx_version == "mainline" %} {% elif nginx_version == "mainline" %}
deb [arch=amd64] https://nginx.org/packages/mainline/debian/ stretch nginx deb [arch=amd64] https://nginx.org/packages/mainline/debian/ stretch nginx
{% endif %} {% endif %}
{% elif ansible_distribution == 'Debian' and ansible_distribution_release != 'buster' %}
{% 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 %} {% endif %}