roles/nginx: Fix hardcoded "stretch" release in sources

This was causing the stretch version to get installed on buster, w-
hich led to the cipher suite and ssl protocol support to behave st-
rangeley.
This commit is contained in:
Alan Orth 2019-09-15 16:03:17 +03:00
parent 1ec6d07232
commit eb7998fd12
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -11,9 +11,9 @@ deb [arch=amd64] https://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribu
{% elif ansible_distribution == 'Debian' %} {% elif ansible_distribution == 'Debian' %}
{% 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/ {{ ansible_distribution_release }} 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/ {{ ansible_distribution_release }} nginx
{% endif %} {% endif %}
{% endif %} {% endif %}