aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/kubernetes/roles/kargo/tasks
diff options
context:
space:
mode:
authorYibo Cai <yibo.cai@arm.com>2017-11-07 14:11:54 +0800
committerYibo Cai <yibo.cai@arm.com>2017-11-09 13:17:09 +0800
commit5d3229aed36c9038b3f5b6098c1b36abfab25e62 (patch)
tree3b4f6d436878fea93e5d8ba167f4e9c6d7ba14d9 /deploy/adapters/ansible/kubernetes/roles/kargo/tasks
parent805cbb914fa5927b4b04ea124870c66ecbcba6cc (diff)
k8s: add package repo for aarch64
Use architecture specific repo if available, otherwise fallback to default(x86_64) repo. Change-Id: I82f483494827564ae0e294d0c88c4080338c5634 Signed-off-by: Yibo Cai <yibo.cai@arm.com>
Diffstat (limited to 'deploy/adapters/ansible/kubernetes/roles/kargo/tasks')
-rw-r--r--deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml b/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml
index 16d0b2c0..a40778f5 100644
--- a/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml
+++ b/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml
@@ -21,8 +21,11 @@
- name: configure local mirror repo
copy:
- src: mirrors.repo
+ src: "{{ item }}"
dest: /etc/yum.repos.d/mirrors.repo
+ with_first_found:
+ - mirrors_{{ ansible_architecture }}.repo
+ - mirrors.repo
run_once: "True"
- name: clean local pip conf to use official pip repo