Apt Facts

See also: Apt Operations.

apt.AptKeys

host.get_fact(AptKeys, )

Returns information on GPG keys apt has in its keychain:

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

apt.AptSources

host.get_fact(AptSources, )

Returns a list of installed apt sources:

[
    {
        "type": "deb",
        "url": "http://archive.ubuntu.org",
        "distribution": "trusty",
        "components", ["main", "multiverse"],
    },
]