Ansible rpm_key modules fail to work with the OpenPGP v6 RPM-GPG-KEY-redhat-release key

Solution Unverified - Updated -

Issue

  • The ansible.builtin.rpm_key module 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_key module 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_key from 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content