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:
parent
70c279ea81
commit
f5fbc4b8f1
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user