### Summary

When I try to use the yum/dnf module to install an RPM from a local file, not from a repo, it fails with a GPG error.

`Failed to validate GPG signature for xyy.rpm`

I've created a simple example here complete with a Vagrant to make it easy to reproduce:

https://github.com/jeffmacdonald/ansible-yum-error



### Issue Type

Bug Report

### Component Name

dnf, yum

### Ansible Version

```console
$ ansible --version

ansible [core 2.11.1]
  config file = None
  configured module search path = ['/Users/jeff.macdonald/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/jeff.macdonald/.pyenv/versions/3.9.5/envs/python3.9.5/lib/python3.9/site-packages/ansible
  ansible collection location = /Users/jeff.macdonald/.ansible/collections:/usr/share/ansible/collections
  executable location = /Users/jeff.macdonald/.pyenv/versions/python3.9.5/bin/ansible
  python version = 3.9.5 (default, May 30 2021, 21:26:15) [Clang 12.0.5 (clang-1205.0.22.9)]
  jinja version = 3.0.1
  libyaml = True
```


### Configuration

```console
$ ansible-config dump --only-changed

No output
```


### OS / Environment

Ansible is being run from a Mac (latest) on Rocky Linux 8.3

### Steps to Reproduce

https://github.com/jeffmacdonald/ansible-yum-error

```yaml
---
- name: Install Telegraf
  hosts: all
  tasks:
    - name: install influx gpg key
      become: yes
      rpm_key:
        key: "https://repos.influxdata.com/influxdb.key"
        state: present

    - name: download telegraf RPM
      get_url:
        url: https://dl.influxdata.com/telegraf/releases/telegraf-1.13.4-1.x86_64.rpm 
        dest: /tmp/telegraf-1.13.4-1.x86_64.rpm

    - name: install telegraf packages
      become: yes
      yum:
        name: /tmp/telegraf-1.13.4-1.x86_64.rpm
        state: present
```


### Expected Results

I expect the RPM to install

### Actual Results

```console
TASK [install telegraf packages] ***********************************************
fatal: [node1]: FAILED! => {"changed": false, "msg": "Failed to validate GPG signature for telegraf-1.13.4-1.x86_64"}
```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
rc=1
                    )
            base.fill_sack(load_system_repo='auto')
        except dnf.exceptions.RepoError as e:
            self.module.fail_json(
                msg="{0}".format(to_text(e)),
                results=[],
                rc=1
            )
        add_security_filters = getattr(base, "add_security_filters", None)
        if callable(add_security_filters):
            filters = {}
            if self.bugfix:
                filters.setdefault('types', []).append('bugfix')
            if self.security:
                filters.setdefault('types', []).append('security')
            if filters:
                add_security_filters('eq', **filters)
        else:
            filters = []
            if self.bugfix:
                key = {'advisory_type__eq': 'bugfix'}
                filters.append(base.sack.query().upgrades().filter(**key))
            if self.security:
                key = {'advisory_type__eq': 'security'}
                filters.append(base.sack.query().upgrades().filter(**key))
            if filters:
                base._update_security_filters = filters
        return base
    def list_items(self, command):