Skip to content

Commit

Permalink
fix "Failed to validate GPG signature"
Browse files Browse the repository at this point in the history
disable the GPG checking of signatures of packages being installed for EPEL and PGDG repositories (RHEL/CentOS).

Fixed:
TASK [add-repository : Install EPEL repository] ****
fatal: [10.172.0.21]: FAILED! => {"changed": false, "msg": "Failed to validate GPG signature for epel-release-8-8.el8.noarch"}
  • Loading branch information
vitabaks committed Sep 2, 2020
1 parent 353877b commit d684b22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/add-repository/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
package:
name: "/tmp/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
state: present
disable_gpg_check: true
when: install_epel_repo|bool
tags: install_epel_repo

Expand Down Expand Up @@ -101,6 +102,7 @@
package:
name: /tmp/pgdg-redhat-repo-latest.noarch.rpm
state: present
disable_gpg_check: true
when: install_postgresql_repo|bool
tags: install_postgresql_repo
environment: "{{ proxy_env | default({}) }}"
Expand Down

0 comments on commit d684b22

Please sign in to comment.