2016-06-27 16:50:49 +02:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
2016-04-27 14:04:17 +02:00
|
|
|
{% if ansible_distribution == 'Ubuntu' %}
|
2015-05-24 23:15:49 +02:00
|
|
|
{% if nginx_version == "stable" %}
|
2018-03-21 20:29:54 +01:00
|
|
|
{% if ansible_distribution_version is version_compare('18.04', '==') %}
|
2018-03-17 12:46:42 +01:00
|
|
|
# 2018-03-17: no Ubuntu 18.04 "bionic" packages yet, so use 17.10 "artful"
|
|
|
|
deb https://nginx.org/packages/ubuntu/ artful nginx
|
|
|
|
{% else %}
|
2017-11-05 00:30:49 +01:00
|
|
|
deb https://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx
|
2018-03-17 12:46:42 +01:00
|
|
|
{% endif %}
|
2015-05-24 23:15:49 +02:00
|
|
|
{% elif nginx_version == "mainline" %}
|
2018-03-21 20:29:54 +01:00
|
|
|
{% if ansible_distribution_version is version_compare('18.04', '==') %}
|
2018-03-17 12:46:42 +01:00
|
|
|
# 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 %}
|
2017-11-05 00:30:49 +01:00
|
|
|
deb https://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release }} nginx
|
2015-05-24 23:15:49 +02:00
|
|
|
{% endif %}
|
2015-06-01 13:49:05 +02:00
|
|
|
{% endif %}
|
2018-03-17 12:46:42 +01:00
|
|
|
{% endif %}
|
2015-06-01 13:49:05 +02:00
|
|
|
|
2017-04-14 15:07:02 +02:00
|
|
|
{% if ansible_distribution == 'Debian' %}
|
2015-08-23 12:22:36 +02:00
|
|
|
{% if nginx_version == "stable" %}
|
2017-11-05 00:30:49 +01:00
|
|
|
deb https://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx
|
2015-08-23 12:22:36 +02:00
|
|
|
{% elif nginx_version == "mainline" %}
|
2017-11-05 00:30:49 +01:00
|
|
|
deb https://nginx.org/packages/mainline/debian/ {{ ansible_distribution_release }} nginx
|
2015-08-23 12:22:36 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|