ansible-inventory
AutomationPackage: ansible-core
Shows the inventory as Ansible reads it, variables resolved and hosts grouped, rather than as you typed it. It is the answer to "why is this host not targeted": a misspelled name shows up where you did not expect it, or not at all.
What its options do in the lessons
From the same glossary the lessons render under their commands, so the two cannot disagree.
ansible-inventory --list- Prints the inventory as Ansible understood it, as JSON: the groups, their hosts, and each host's variables under
_meta.hostvars.
