Pcornel
Automation · Source of Truth

Inventory

Cheat sheet · https://pcornel.dk/topic.php?topic=5855

Back to the Topic

Answer

Inventory in a source of truth is the authoritative list of devices and systems with their attributes, used to generate automation inventories instead of maintaining separate lists.

Remember

  • Generate inventory from the source of truth.
  • Attributes drive automation behaviour.
  • Keep one list, not many.

First checks

  • SoT device/VM records — inventory
  • ansible-inventory -i nb.yml --graph — generated inventory
  • Status field (active, planned, decommissioning) — lifecycle

Verify in this order

SoT records → inventory plugin → targets

Where it usually breaks

Inventory/vars → play/task selection → connection/become → module request → module result → target object read-back → handler/service effective state → workload verification.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5855

Confirmation

Confirm action

Continue?