Skip to content

Commit

Permalink
Import new AlmaLinux 8 GPG key (AWS image fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslavic authored Jun 19, 2024
1 parent 6428561 commit 1e3c82c
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
name: '*'
when: ansible_facts.packages.keys() | select('search', 'rhui-azure')

- block:
- name: Remove expired AlmaLinux 8 GPG key
rpm_key:
key: /etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
state: absent

- name: Import the new AlmaLinux 8 GPG key
rpm_key:
key: https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
state: present
when:
- ansible_distribution == 'AlmaLinux'
- ansible_distribution_major_version == '8'

- name: Install RedHat family packages for repository to work
yum:
name:
Expand Down

0 comments on commit 1e3c82c

Please sign in to comment.