aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks
diff options
context:
space:
mode:
authorYibo Cai <yibo.cai@arm.com>2018-04-10 13:35:22 +0800
committerYibo Cai <yibo.cai@arm.com>2018-04-10 10:14:21 +0000
commit0f86f4504f82b5cd653edc8a8a4a27e16f36d0d4 (patch)
treee2f82ec8ca5a581356769ab1283aeccecf3c014a /deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks
parent01ff42530757cf99e99b0d63d6daa822b93e1941 (diff)
support deploying k8s above ubuntu on arm
Change-Id: I5642c866423728a8cdbbc3ea82969e6aec346981 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/Ubuntu.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/Ubuntu.yml b/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/Ubuntu.yml
index 44e3b1f6..b4ef9278 100644
--- a/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/Ubuntu.yml
+++ b/deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/Ubuntu.yml
@@ -62,10 +62,17 @@
- name: remove the space end of the line in the resolv.conf
shell: "sed -i 's/ *$//' /etc/resolv.conf"
+- name: remove estuary overlay and update apt cache
+ shell: rm -f /etc/apt/sources.list.d/estuary.list && apt-get update
+ when: ansible_architecture == "aarch64"
+
- name: change sources list
copy:
- src: sources.list.official
+ src: "{{ item }}"
dest: /etc/apt/sources.list
+ with_first_found:
+ - sources.list.official.{{ ansible_architecture }}
+ - sources.list.official
- name: restart ntp service
shell: "service ntp restart"