diff --git a/pages/common/ansible-inventory.md b/pages/common/ansible-inventory.md new file mode 100644 index 00000000000000..81bbe0c569671c --- /dev/null +++ b/pages/common/ansible-inventory.md @@ -0,0 +1,21 @@ +# ansible-inventory + +> Display or dump an Ansible inventory. +> See also: `ansible`. +> More information: . + +- Display the default inventory: + +`ansible-inventory --list` + +- Display a custom inventory: + +`ansbile-inventory --list --inventory {{path/to/file_or_script_or_directory}}` + +- Display the default inventory in YAML: + +`ansible-inventory --list --yaml` + +- Dump the default inventory to a file: + +`ansible-inventory --list --output {{path/to/file}}`