Ansible

What is a dynamic inventory file? When you would use one?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

A dynamic inventory file tracks hosts from one or more sources like cloud providers and CMDB systems.

You should use one when using external sources and especially when the hosts in your environment are being automatically

spun up and shut down, without you tracking every change in these sources.