Problem Statement
What is the purpose of the Ansible inventory file?
Explanation
The inventory file is a key component in Ansible that defines which hosts or groups of hosts the automation will target.
It can be static (written in INI or YAML) or dynamic (generated from cloud APIs). Inventory files make it easy to manage servers at scale and apply playbooks selectively.
