I am using this role found on github:https://github.com/AdamMack2007/ansible_inventory_report
I tweaked the template to use ansible_net_hostname instead of inventory_name