roles/nginx: Use bionic builds on Ubuntu 18.04

NGINX finally published builds for Ubuntu 18.04 "bionic" so we don't
need to use the 17.10 "artful" ones anymore.
This commit is contained in:
Alan Orth 2018-05-08 23:39:59 +03:00
parent 70c279ea81
commit f5fbc4b8f1
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -2,17 +2,9 @@
{% if ansible_distribution == 'Ubuntu' %}
{% if nginx_version == "stable" %}
{% if ansible_distribution_version is version_compare('18.04', '==') %}
# 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_version is version_compare('18.04', '==') %}
# 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 %}