From 5bc4c97786cd2e049b2467bbc7dbd78691661723 Mon Sep 17 00:00:00 2001 From: Adam Herst Date: Thu, 15 Apr 2021 21:47:12 -0400 Subject: [PATCH] ansible-inventory: add page (#5756) --- pages/common/ansible-inventory.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/common/ansible-inventory.md diff --git a/pages/common/ansible-inventory.md b/pages/common/ansible-inventory.md new file mode 100644 index 000000000..81bbe0c56 --- /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}}`