roles/nginx: Force amd64 builds on apt sources

Avoids the following error in apt:

Skipping acquire of configured file 'nginx/binary-i386/Packages' as repository 'https://nginx.org/packages/ubuntu bionic InRelease' doesn't support architecture 'i386'
This commit is contained in:
Alan Orth 2018-05-08 23:41:25 +03:00
parent f5fbc4b8f1
commit 3f0c45d504
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

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