ansible-cmdb
ansible-cmdb copied to clipboard
feature request: support network ansible_facts data structure
Hello,
Thanks for the project it works well.
I was hoping to share the need for an enhancement, I would like to run:
$ ansible -m setup --tree out/ linux
$ ansible -m ios_facts --tree out/ ios
$ ansible -m nxos_facts --tree out/ nxos
$ ansible-cmdb out/ > overview.html
where linux/ios/nxos/etc.. are inventory groups of said platforms.
clearly the facts data structure between setup and network is different but not that much, i.e.: setup -> ansible_hostname network (ios_facts/nxos_facts/etc..) -> ansible_net_hostname (i think network modules inherits from 'connection: network')
So, my request is less specific to a platform but more about a way to feed ansible_facts network data structure and have ansible-cmdb.py do the job the same way it does now.
In the end, my overview.html page would have a mix of different devices/platforms (ios_facts/nxos_facts/bigip_facts or any
Let me know your thoughts on this enhancement. It feels like a minor change but specific enough that it's not obvious to me yet where to make the change. Also you might have suggestions ;)
Thanks for your time and keep up the good work