Gpg Facts

See also: Gpg Operations.

gpg.GpgKey

host.get_fact(GpgKey, src)

Returns information on one or more GPG keys found in a file or URL.

{
    "KEY-ID": {
        "length": 4096,
        "uid": "Oxygem <hello@oxygem.com>"
    },
}

gpg.GpgKeyrings

host.get_fact(GpgKeyrings, directories)

Returns information on all GPG keyrings found in specified directories.

{
    "/etc/apt/keyrings/docker.gpg": {
        "format": "gpg",
        "keys": {...}  # Same format as GpgKeys fact
    }
}

gpg.GpgKeys

host.get_fact(GpgKeys, keyring=None)

Returns information on all public keys in a keychain.

{
    "KEY-ID": {
        "length": 4096,
        "uid": "Oxygem <hello@oxygem.com>"
    },
}

gpg.GpgSecretKeys

host.get_fact(GpgSecretKeys, keyring=None)

Returns information on all secret keys in a keychain.

{
    "KEY-ID": {
        "length": 4096,
        "fingerprint": "ABC",
        "uid": "Oxygem <hello@oxygem.com>"
    },
}