From 44bc52a53937464cfa595d1d22bc7e9756049c1e Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 7 Mar 2018 13:49:26 +1100 Subject: [PATCH] Add arm64 support to mirror setup Load the variables from an architecture specific file first -- ansible's ansible_architecture fact for arm64 is aarch64 (it's all confusing, Ubuntu calls it arm64). Add this file that sets up the repo as "ubuntu-ports", which is our mirror of ports.ubuntu.com Change-Id: Ieb50ae29c7f822e831ef1e32fdd03f74a93e298a --- roles/configure-mirrors/tasks/mirror.yaml | 1 + roles/configure-mirrors/vars/Ubuntu.aarch64.yaml | 1 + 2 files changed, 2 insertions(+) create mode 100644 roles/configure-mirrors/vars/Ubuntu.aarch64.yaml diff --git a/roles/configure-mirrors/tasks/mirror.yaml b/roles/configure-mirrors/tasks/mirror.yaml index bea8b57e3..f550da36e 100644 --- a/roles/configure-mirrors/tasks/mirror.yaml +++ b/roles/configure-mirrors/tasks/mirror.yaml @@ -7,6 +7,7 @@ - name: Include OS-specific variables include_vars: "{{ item }}" with_first_found: + - "{{ ansible_distribution }}.{{ ansible_architecture }}.yaml" - "{{ ansible_distribution }}.yaml" - "{{ ansible_os_family }}.yaml" - "default.yaml" diff --git a/roles/configure-mirrors/vars/Ubuntu.aarch64.yaml b/roles/configure-mirrors/vars/Ubuntu.aarch64.yaml new file mode 100644 index 000000000..047179039 --- /dev/null +++ b/roles/configure-mirrors/vars/Ubuntu.aarch64.yaml @@ -0,0 +1 @@ +package_mirror: "http://{{ mirror_fqdn }}/{{ ansible_distribution | lower }}-ports"