Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #464 from Spredzy/import_gpg
Browse files Browse the repository at this point in the history
EPEL: Import GPG keys
  • Loading branch information
dkliban committed Oct 14, 2020
2 parents 2e8f93a + 9d94b5d commit 2e780a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/7709.misc
@@ -0,0 +1 @@
Import EPEL GPG keys before using EPEL following an ansible recent update.
12 changes: 12 additions & 0 deletions roles/pulp_common/tasks/repos.yml
@@ -1,6 +1,18 @@
---
# enable additional repos needed by Pulp


- name: Import required EPEL RPM GPG keys
rpm_key:
state: present
key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_facts.distribution_major_version }}
become: true
when:
- (ansible_facts.distribution == 'CentOS') or (ansible_facts.distribution == 'RedHat')
- epel_release_packages is defined
- epel_release_packages is not none
- epel_release_packages | length > 0

# Break the loop once the first package name/URL in the list is found to be installed.
# The yum module with the yum backend (which wraps the yum command) uses
# rc=126 for package not found, or 0 for changed / already installed.
Expand Down

0 comments on commit 2e780a9

Please sign in to comment.