On this page you find all important commands for the CLI tool ansible-inventory. If the
command you are looking for is missing please ask our AI.
ansible-inventory
used to display or dump the configured inventory as Ansible sees it
List of commands for ansible-inventory:
-
ansible-inventory:tldr:5696d ansible-inventory: Dump the default inventory to a file.$ ansible-inventory --list --output ${filename}try on your machineexplain this command
-
ansible-inventory:tldr:a10ea ansible-inventory: Display the default inventory.$ ansible-inventory --listtry on your machineexplain this command
-
ansible-inventory:tldr:f721f ansible-inventory: Display the default inventory in YAML.$ ansible-inventory --list --yamltry on your machineexplain this command