roles/nginx: Fix Jinja2 logic in apt sources template

This commit is contained in:
Alan Orth 2018-05-08 23:53:47 +03:00
parent 5a8b7f0425
commit 42fcd933a8
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -3,12 +3,10 @@
{% if ansible_distribution == 'Ubuntu' %}
{% if nginx_version == "stable" %}
deb [arch=amd64] https://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx
{% endif %}
{% elif nginx_version == "mainline" %}
deb [arch=amd64] https://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release }} nginx
{% endif %}
{% endif %}
{% endif %}
{% if ansible_distribution == 'Debian' %}
{% if nginx_version == "stable" %}