roles/nginx: Use Ubuntu 17.10's packages on Ubuntu 18.04

There are no nginx packages for Ubuntu 18.04 "bionic" yet so we
should use Ubuntu 17.10 "artful".
This commit is contained in:
Alan Orth 2018-03-17 13:46:42 +02:00
parent 6c093801c4
commit 5c3553e684

View File

@ -2,11 +2,21 @@
{% if ansible_distribution == 'Ubuntu' %}
{% if nginx_version == "stable" %}
{% if ansible_distribution_release == 'bionic' %}
# 2018-03-17: no Ubuntu 18.04 "bionic" packages yet, so use 17.10 "artful"
deb https://nginx.org/packages/ubuntu/ artful nginx
{% else %}
deb https://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx
{% endif %}
{% elif nginx_version == "mainline" %}
{% if ansible_distribution_release == 'bionic' %}
# 2018-03-17: no Ubuntu 18.04 "bionic" packages yet, so use 17.10 "artful"
deb https://nginx.org/packages/mainline/ubuntu/ artful nginx
{% else %}
deb https://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release }} nginx
{% endif %}
{% endif %}
{% endif %}
{% if ansible_distribution == 'Debian' %}
{% if nginx_version == "stable" %}