0Pricing
Ansible Academy · Lesson

Caching & Multiple Inventory Sources

Merge and speed up large inventories.

Queries Cost Time

Hitting the cloud API on every run is slow when you have hundreds of hosts. Each play start pays that lookup tax again. ⏱️

Cache the Results

Inventory caching stores the fetched host data so repeated runs reuse it instead of re-querying the cloud every time.

All lessons in this course

  1. Static Limits & the Inventory Plugin Model
  2. The aws_ec2 Inventory Plugin
  3. constructed: Group Hosts by Tags
  4. Caching & Multiple Inventory Sources
← Back to Ansible Academy