From 7c1f7d7c48e959ac2b057e2db6e06a1be86e3389 Mon Sep 17 00:00:00 2001 From: Douglas Holt Date: Wed, 29 Sep 2021 07:42:39 -0700 Subject: [PATCH] Add EPEL repo GPG key --- defaults/main.yml | 1 + tasks/install-redhat.yml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 2d8b0e2..add1576 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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" diff --git a/tasks/install-redhat.yml b/tasks/install-redhat.yml index 7870178..6d9efc5 100644 --- a/tasks/install-redhat.yml +++ b/tasks/install-redhat.yml @@ -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: