From 72824722d6c46d354d226fe8b6a7d4300d13e5b8 Mon Sep 17 00:00:00 2001 From: Kenji Miyake Date: Thu, 28 Apr 2022 01:20:19 +0900 Subject: [PATCH] tmp: add liburcu6 repository for CUDA 20.04 repository Signed-off-by: Kenji Miyake --- ansible/roles/cuda/tasks/main.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ansible/roles/cuda/tasks/main.yaml b/ansible/roles/cuda/tasks/main.yaml index fd427d430ae..8060d455c9d 100644 --- a/ansible/roles/cuda/tasks/main.yaml +++ b/ansible/roles/cuda/tasks/main.yaml @@ -8,6 +8,22 @@ register: cuda_architecture changed_when: false +- name: (tmp for Ubuntu 22.04) Add liburcu6 repository into sources.list for amd64 + become: true + ansible.builtin.apt_repository: + repo: deb http://archive.ubuntu.com/ubuntu focal main restricted + filename: focal + state: present + when: cuda_architecture.stdout == "x86_64" + +- name: (tmp for Ubuntu 22.04) Add liburcu6 repository into sources.list for arm64 + become: true + ansible.builtin.apt_repository: + repo: deb http://ports.ubuntu.com/ubuntu-ports focal main restricted + filename: focal + state: present + when: cuda_architecture.stdout == "aarch64" + - name: Remove old /etc/apt/sources.list.d/cuda.list become: true ansible.builtin.file: