From ef721dbf13db8f3578b45791ac67c4815bd8c59a Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Wed, 30 Nov 2022 14:00:57 +0000 Subject: [PATCH] Use correct apt repo when ubuntu architecture is not x86_64 All other architectures are at ports.ubuntu.com. Change-Id: I0f2d433bc11bd28541b48bf6b6644d83d4d19c4d --- defaults/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index d6102982..f49a75b7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -238,4 +238,5 @@ lxc_centos_epel_key: "{{ centos_epel_key | default('http://download.fedoraprojec lxc_centos_package_baseurl: "{{ _lxc_centos_package_baseurl }}" lxc_centos_package_key: "{{ _lxc_centos_package_key }}" -lxc_apt_mirror: "{{ (ansible_facts['distribution'] == 'Ubuntu') | ternary('http://archive.ubuntu.com/ubuntu', 'http://deb.debian.org/debian') }}" +lxc_ubuntu_mirror: "{{ (ansible_facts['architecture'] == 'x86_64') | ternary('http://archive.ubuntu.com/ubuntu', 'http://ports.ubuntu.com/ubuntu-ports') }}" +lxc_apt_mirror: "{{ (ansible_facts['distribution'] == 'Ubuntu') | ternary(lxc_ubuntu_mirror, 'http://deb.debian.org/debian') }}"