Gpg Facts

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.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>"
    },
}