From d684b22fbc08c7d1db4d75de7fc168bcb5c5de86 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Wed, 2 Sep 2020 19:43:59 +0300 Subject: [PATCH] fix "Failed to validate GPG signature" 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"} --- roles/add-repository/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/add-repository/tasks/main.yml b/roles/add-repository/tasks/main.yml index 62b49c766..a30b62335 100644 --- a/roles/add-repository/tasks/main.yml +++ b/roles/add-repository/tasks/main.yml @@ -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 @@ -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({}) }}"