Skip to content

Commit

Permalink
Merge pull request #45 from dholt/master
Browse files Browse the repository at this point in the history
Add EPEL repo GPG key
  • Loading branch information
dholt authored Sep 29, 2021
2 parents ff4dc29 + 7c1f7d7 commit 22e2640
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ nvidia_driver_module_params: ''
# RedHat family #
##############################################################################
epel_package: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
epel_repo_key: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"
nvidia_driver_rhel_cuda_repo_baseurl: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _rhel_repo_dir }}/"
nvidia_driver_rhel_cuda_repo_gpgkey: "https://developer.download.nvidia.com/compute/cuda/repos/{{ _rhel_repo_dir }}/7fa2af80.pub"

Expand Down
5 changes: 5 additions & 0 deletions tasks/install-redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
- name: reboot to pick up the new kernel
reboot:

- name: add epel repo gpg key
rpm_key:
key: "{{ epel_repo_key }}"
state: present

- name: add epel repo
become: true
yum:
Expand Down

0 comments on commit 22e2640

Please sign in to comment.