Automation · Inventory
Discovery
Cheat sheet · https://pcornel.dk/topic.php?topic=5849
Answer
Discovery automatically finds systems and their details by scanning networks, querying cloud APIs, hypervisors or SNMP and LLDP, feeding inventories and highlighting unknown devices.
Remember
- Network scans, cloud APIs, hypervisors, SNMP/LLDP.
- Finds unknown devices.
- Feeds inventory.
First checks
nmap -sn <subnet>— host discovery- LLDP/CDP neighbor collection — topology
- SNMP/API discovery jobs — devices
Verify in this order
network → discovery → compare with SoT
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=5849