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.