roles/nginx: Add Debian support to nginx sources.list template

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-08-23 13:22:36 +03:00
parent 9ad8209fd4
commit b214bdfae8
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 8 additions and 0 deletions

View File

@ -14,3 +14,11 @@ deb http://nginx.org/packages/ubuntu/ utopic nginx
deb http://nginx.org/packages/mainline/ubuntu/ utopic nginx
{% endif %}
{% endif %}
{% if ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie' %}
{% if nginx_version == "stable" %}
deb http://nginx.org/packages/debian/ jessie nginx
{% elif nginx_version == "mainline" %}
deb http://nginx.org/packages/mainline/debian/ jessie nginx
{% endif %}
{% endif %}