Interview Prep/Ansible/Architecture Decisions and Tool Comparisons

Static inventory, dynamic inventory or a CMDB: how do you choose?

IntermediateProductionArchitecture Decisions and Tool Comparisons
Answer
  • Static INI/YAML: perfect for small, stable estates and lab environments. Reviewed in Git, easy to read. Falls behind reality as soon as hosts change often.
  • Dynamic (cloud plugins): the cloud API is the truth, so autoscaled and short-lived hosts are always correct. Grouping depends on tag discipline.
  • CMDB-backed (ServiceNow, NetBox via netbox.netbox.nb_inventory): fits large on-prem and network estates where a CMDB is already the record of what exists and who owns it.

Many companies combine them: dynamic for cloud, NetBox for network gear and data centres, with a small static file for special hosts. What matters is that each host has exactly one source of truth.

All Ansible questions Roadmap: Ansible

More on Architecture Decisions and Tool Comparisons