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 | 813756495d5ef33fa3cc95d69b6d88418ebe7bb1 (patch) | |
tree | d923e31d8407c9d8c04407a1224ff1afa4be2a91 /tasks/configure_yum.yml | |
download | itm-813756495d5ef33fa3cc95d69b6d88418ebe7bb1.tar.gz itm-813756495d5ef33fa3cc95d69b6d88418ebe7bb1.tar.bz2 itm-813756495d5ef33fa3cc95d69b6d88418ebe7bb1.tar.xz itm-813756495d5ef33fa3cc95d69b6d88418ebe7bb1.zip |
Squashed 'roles/cuda/' content from commit f82a4fe
git-subtree-dir: roles/cuda
git-subtree-split: f82a4fedb62a410b1f05454ee5ba5f2e5ff0a16c
Diffstat (limited to 'tasks/configure_yum.yml')
-rw-r--r-- | tasks/configure_yum.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tasks/configure_yum.yml b/tasks/configure_yum.yml new file mode 100644 index 0000000..e888468 --- /dev/null +++ b/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: |