Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-132558

Ansible rpm_key Module Failure on RHEL 10

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-9.7
    • ansible-core
    • None
    • None
    • Low
    • None
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What is the impact of this issue on you?

      ansible.builtin.rpm_key for ansible-core 2.14 provided in RHEL 9 doesn't work against RHEL 10 hosts

      Steps to reproduce:

      Test playbook: 

      ```

      • name: Test RPM Key Import
          hosts: all
          become: true
          tasks:
            - name: import rpm gpg key (EPEL 9)
              ansible.builtin.rpm_key:
                key: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9"
                fingerprint: "3228467C02E3796961FB937C3249976DA7F6B55D"
                state: present

      ```

      Error: FAILED! => {"changed": false, "msg": "failed to fetch key at https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9 , error was: An unknown error occurred: HTTPSConnection._init_() got an unexpected keyword argument 'cert_file'"}

       

              dsavinea@redhat.com Dimitri Savineau
              rhn-support-kpusdeka Kunal Pusdekar
              Dimitri Savineau Dimitri Savineau
              Matt Clay Matt Clay
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: