def get_host_info(self):

        inventory = self.get_inventory()
        if self.args.host in inventory['_meta']['hostvars']:
            return inventory['_meta']['hostvars'][self.args.host]
Get variables about a specific host
dataset/ETHPy150Open openshift/openshift-ansible/inventory/libvirt/hosts/libvirt_generic.py/LibvirtInventory.get_host_info