Alan Orth
4ff2ac1737
Version 1.12.x is now stable and 1.13.x is now mainline. See: https://www.nginx.com/blog/nginx-1-12-1-13-released/
18 lines
640 B
Django/Jinja
18 lines
640 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
{% if ansible_distribution == 'Ubuntu' %}
|
|
{% if nginx_version == "stable" %}
|
|
deb http://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx
|
|
{% elif nginx_version == "mainline" %}
|
|
deb http://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release }} nginx
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if ansible_distribution == 'Debian' %}
|
|
{% if nginx_version == "stable" %}
|
|
deb http://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx
|
|
{% elif nginx_version == "mainline" %}
|
|
deb http://nginx.org/packages/mainline/debian/ {{ ansible_distribution_release }} nginx
|
|
{% endif %}
|
|
{% endif %}
|