GUI Free Life View on GitHub

Ansible CMDB Inventory and Facts Reporting

ansible

Dec 06, 2015

You just deployed a complex multi-host app using Ansible. Wouldn’t it be helpful to see a overview of the deployment including hardware details?

I just found ansible-cmdb which combines info from the Ansible inventory and discovered facts to create a detailed HTML report akin to a Configuration Management Database.

To use it in your playbook dir, just create a directory to hold facts discovered by the setup module then generate the report.

mkdir cmdb
ansible all -i hosts -m setup --tree cmdb/
ansible-cmdb -i hosts cmdb/ > cmdb.html

Now go take a look at cmdb.html. Here is an example report.

Screenshot Overview