blob: e888468f831599352c4b223a9e30506aee98e488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
---
# tasks file for ansible-role-cuda
- name: Upload packaging key for Nvidia repositories
copy:
src: nvidia_packaging_key.asc
dest: "{{ cuda_rpm_key_path }}"
mode: 0644
- name: Trust packaging key for Nvidia repositories (rpm)
rpm_key:
key: "{{ cuda_rpm_key_path }}"
state: present
- name: Remove trust for old Nvidia packaging key
rpm_key:
key: 5C37D3BE
state: absent
- name: Configure Nvidia repository (yum)
yum_repository:
name: nvidia
description: Official Nvidia repository
baseurl: "{{ cuda_repo_url }}/{{ cuda_repo_subfolder }}/x86_64/"
gpgkey: "file://{{ cuda_rpm_key_path }}"
gpgcheck: yes
enabled: yes
# vim:ft=ansible:
|