Use correct apt repo when ubuntu architecture is not x86_64

All other architectures are at ports.ubuntu.com.

Change-Id: I0f2d433bc11bd28541b48bf6b6644d83d4d19c4d
This commit is contained in:
Jonathan Rosser 2022-11-30 14:00:57 +00:00
parent 9385ec8011
commit ef721dbf13
1 changed files with 2 additions and 1 deletions

View File

@ -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') }}"