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:
parent
f5fbc4b8f1
commit
3f0c45d504
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user