diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-07-05 16:22:58 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-07-05 16:22:58 +0200 |
commit | 0b3d99f96dabb1aa2fbf7f99559852916a97d610 (patch) | |
tree | b56e453cf5182a24c6878c23f5985781928d1e57 /roles/cuda/tasks/configure_yum.yml | |
parent | 5416f8599ffa92b69bb87434dc1175d760760bbe (diff) | |
parent | 813756495d5ef33fa3cc95d69b6d88418ebe7bb1 (diff) | |
download | itm-0b3d99f96dabb1aa2fbf7f99559852916a97d610.tar.gz itm-0b3d99f96dabb1aa2fbf7f99559852916a97d610.tar.bz2 itm-0b3d99f96dabb1aa2fbf7f99559852916a97d610.tar.xz itm-0b3d99f96dabb1aa2fbf7f99559852916a97d610.zip |
Merge commit '813756495d5ef33fa3cc95d69b6d88418ebe7bb1' as 'roles/cuda'
Diffstat (limited to 'roles/cuda/tasks/configure_yum.yml')
-rw-r--r-- | roles/cuda/tasks/configure_yum.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/roles/cuda/tasks/configure_yum.yml b/roles/cuda/tasks/configure_yum.yml new file mode 100644 index 0000000..e888468 --- /dev/null +++ b/roles/cuda/tasks/configure_yum.yml @@ -0,0 +1,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: |