Apt Facts

apt.AptKeys

host.get_fact(AptKeys, )

rns information on GPG keys apt has in its keychain:

ode:: python

{
“KEY-ID”: {

“length”: 4096, “uid”: “Oxygem <hello@oxygem.com>”

},

}

apt.AptSources

host.get_fact(AptSources, )

rns a list of installed apt sources:

ode:: python

[
{

“type”: “deb”, “url”: “http://archive.ubuntu.org”, “distribution”: “trusty”, “components”, [“main”, “multiverse”],

},

]

apt.SimulateOperationWillChange

host.get_fact(SimulateOperationWillChange, command)

late an ‘apt-get’ operation and try to detect if any changes would be performed.