Automation · Inventory
Source of Truth
Cheat sheet · https://pcornel.dk/topic.php?topic=5847
Answer
An inventory sourced from a source of truth such as NetBox or a CMDB keeps host lists, groups and variables in one authoritative place, avoiding inventories that drift apart.
Remember
- One authoritative place for host data.
- Avoid separate lists drifting apart.
- Sync regularly.
First checks
- SoT (NetBox/Nautobot/CMDB) as inventory source — authority
- Sync direction (SoT → automation) — flow
- Discrepancy reports — quality
Verify in this order
SoT → inventory → automation; discovery → reconcile
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=5847