def METHOD_NAME(src):
    """
    Add dnf gpg keys with ``rpm``.
    + key: filename or URL
    Note:
        always returns one command, not idempotent
    **Example:**
    .. code:: python
        linux_id = host.get_fact(LinuxDistribution)["release_meta"].get("ID")
        dnf.key(
            name="Add the Docker CentOS gpg key",
            src=f"https://download.docker.com/linux/{linux_id}/gpg",
        )
    """
    yield "rpm --import {0}".format(src)