Gem Facts

gem.GemPackages

host.get_fact(GemPackages)

Returns a dict of installed gem packages:

{
    'package_name': ['version'],
}