blob: 73ecb304b24e416102ec0cb82137aae77f7fb885 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
- name: Import NVIDIA Docker repository gpg keys
rpm_key:
key: "{{ nvidia_docker_repo_url }}/{{ item }}/gpgkey"
state: present
with_items: "{{ nvidia_repos }}"
when: "'cuda' in group_names"
- name: Configure Nvidia repositories (yum)
yum_repository:
name: "{{ item }}"
description: Official {{ item }} repository
baseurl: "{{ nvidia_docker_repo_url }}/{{ item }}/{{ nvidia_docker_repo_subfolder }}/x86_64/"
gpgkey: "{{ nvidia_docker_repo_url }}/{{ item }}/gpgkey"
gpgcheck: no
enabled: yes
with_items: "{{ nvidia_repos }}"
when: "'cuda' in group_names"
|