ansible-inventory
Display or dump an Ansible inventory. See also:
ansible. More information: https://docs.ansible.com/projects/ansible/latest/cli/ansible-inventory.html.
- Display the default inventory:
ansible-inventory --list
- Display a custom inventory:
ansible-inventory --list
- Display the default inventory in YAML:
ansible-inventory --list
- Dump the default inventory to a file:
ansible-inventory --list --output
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
