def find_host(search_host, inventory):
 host_attribs = inventory.get(search_host, {})
 print json.dumps(host_attribs)

def find_host ( search_host , inventory ) : host_attribs = inventory . get ( search_host , { } ) print json . dumps ( host_attribs )
find the given variables for the given host and output them as json .