fatal: [localhost]: FAILED! => {«changed»: false, «msg»: «Failed to validate GPG signature for remi-release-8.4-1.el8.remi.noarch»}
remi site says RPM-GPG-KEY-remi
is for Fedora <= 25 and EL <= 7
RPM-GPG-KEY-remi2018: the GnuPG public key of the key pair used to sign my packages (Fedora 28-29 and EL-8)
RPM-GPG-KEY-remi2017: the GnuPG public key of the key pair used to sign my packages (Fedora 26-27)
RPM-GPG-KEY-remi: the GnuPG public key of the key pair used to sign my packages (Fedora <= 25 and EL <= 7)
This works for me (on RHEL8):
- hosts: localhost tasks: - rpm_key: state: present key: https://rpms.remirepo.net/RPM-GPG-KEY-remi2018 - rpm_key: state: present key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8 - name: Install epel repo. yum: name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm" state: present - name: Install remi repo. yum: name: "http://rpms.remirepo.net/enterprise/remi-release-8.rpm" state: present