roles/nginx: Use https for apt repository

This commit is contained in:
Alan Orth 2017-11-05 01:30:49 +02:00
parent 55b464e8f7
commit d15c9851db
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -2,16 +2,16 @@
{% if ansible_distribution == 'Ubuntu' %}
{% if nginx_version == "stable" %}
deb http://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx
deb https://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx
{% elif nginx_version == "mainline" %}
deb http://nginx.org/packages/mainline/ubuntu/ {{ ansible_distribution_release }} nginx
deb https://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
deb https://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx
{% elif nginx_version == "mainline" %}
deb http://nginx.org/packages/mainline/debian/ {{ ansible_distribution_release }} nginx
deb https://nginx.org/packages/mainline/debian/ {{ ansible_distribution_release }} nginx
{% endif %}
{% endif %}