ansible-inventory --host web1

Category: IaC & Automation

ansible-inventory --host web1

Show all variables for a single host

Outputs the merged variables for web1 from every group it belongs to, the fastest way to debug where a value came from. Related: ansible all -m setup.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.