Apt Facts

apt.AptKeys

host.get_fact(AptKeys)

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'],
    },
]