Abstract.
I needed to a unified inventory for all servers I manage, so I made a Python script retrieves servers list and ssh ports from Opsview via APIs, and it supports 4 kinds of output formats:- Ansible dynamic inventory.
- Ansible static inventory (INI-like).
- OpenSSH config file.
- Pure JSON.
It looks like a hack more than anything else, and most importantly .. it works! :D
And for now it's enough for current needs.