summaryrefslogtreecommitdiffstats
path: root/tasks/configure_apt.yml
blob: 53a38a5f33a2ba1dd7a96da46af1e6e2cc42042d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
# tasks file for ansible-role-cuda
- name: Trust packaging key for Nvidia repositories (apt)
  apt_key:
    data: "{{ lookup('file', 'files/nvidia_packaging_key.asc') }}"
    id: "{{ cuda_packaging_key_id }}"
    state: present

- name: Configure Nvidia repository (apt)
  apt_repository:
    repo: "deb {{ cuda_repo_url }}/{{ cuda_repo_subfolder }}/x86_64 /"
    filename: nvidia
    state: present

# vim:ft=ansible: