Add EPEL repo GPG key

This commit is contained in:
Douglas Holt 2021-09-29 07:42:39 -07:00
parent 9f83a51b1a
commit 7c1f7d7c48
2 changed files with 6 additions and 0 deletions

View File

@ -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"

View File

@ -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: