From 0f86f4504f82b5cd653edc8a8a4a27e16f36d0d4 Mon Sep 17 00:00:00 2001 From: Yibo Cai Date: Tue, 10 Apr 2018 13:35:22 +0800 Subject: support deploying k8s above ubuntu on arm Change-Id: I5642c866423728a8cdbbc3ea82969e6aec346981 Signed-off-by: Yibo Cai --- .../adapters/ansible/kubernetes/roles/pre-k8s/tasks/Ubuntu.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'deploy/adapters/ansible/kubernetes/roles/pre-k8s/tasks/Ubuntu.yml') 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" -- cgit 1.2.3-korg