Skip to content

Commit

Permalink
Import AlmaLinux repository GPG key (#557)
Browse files Browse the repository at this point in the history
Fixed: "Failed to validate GPG signature for XXX: Public key for XXX.rpm is not installed"
  • Loading branch information
vitabaks authored Jan 18, 2024
1 parent 76bc051 commit c5b7d48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/add-repository/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
tags: add_repo

- block: # RedHat/CentOS
- name: Add repository GPG key
ansible.builtin.command: "rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux-{{ ansible_distribution_major_version }}"
when: ansible_distribution == "AlmaLinux"

- name: Add repository
ansible.builtin.yum_repository:
name: "{{ item.name }}"
Expand Down

0 comments on commit c5b7d48

Please sign in to comment.