diff options
author | Yibo Cai <yibo.cai@arm.com> | 2017-11-07 14:11:54 +0800 |
---|---|---|
committer | Yibo Cai <yibo.cai@arm.com> | 2017-11-09 13:17:09 +0800 |
commit | 5d3229aed36c9038b3f5b6098c1b36abfab25e62 (patch) | |
tree | 3b4f6d436878fea93e5d8ba167f4e9c6d7ba14d9 /deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks | |
parent | 805cbb914fa5927b4b04ea124870c66ecbcba6cc (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/pre-k8s/tasks')
-rw-r--r-- | deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/RedHat.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/RedHat.yml b/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/RedHat.yml index 58af0f7b..8e410e15 100644 --- a/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/RedHat.yml +++ b/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/RedHat.yml @@ -51,5 +51,8 @@ - name: change sources(yum) list copy: - src: centos_base.repo + src: "{{ item }}" dest: /etc/yum.repos.d/centos_base.repo + with_first_found: + - centos_base_{{ ansible_architecture }}.repo + - centos_base.repo |