Ansible rpm_key modules fail to work with the OpenPGP v6 RPM-GPG-KEY-redhat-release key
Issue
-
The
ansible.builtin.rpm_keymodule fails with the following error when working with the RHEL 10.1 release key:... gpg key must be trusted by rpm with MESSAGE: gpg: WARNING: no command supplied. Trying to guess what you mean ...#012gpg: packet(6) with unknown version 6 -
Cannot use
ansible.builtin.rpm_keymodule on Red Hat Enterprise Linux (RHEL) 10.1 to import the default RPM GPG key; - A Post-Quantum Cryptography (PQC) key (OpenPGP v6) installed by default in the RHEL 10.1 repositories blocks
ansible.builtin.rpm_keyfrom adding additional GPG keys;
Environment
- Red Hat Enterprise Linux (RHEL) 10.1;
- Ansible Collections;
- Use of
ansible.builtin.rpm_key;
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.