From 7fe92893a11086e6e7289ef367b3962c00689585 Mon Sep 17 00:00:00 2001 From: Natechawin Suthison Date: Sun, 1 Nov 2020 03:44:34 +0700 Subject: [PATCH] ansible-doc: add page (#4843) --- pages/common/ansible-doc.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pages/common/ansible-doc.md diff --git a/pages/common/ansible-doc.md b/pages/common/ansible-doc.md new file mode 100644 index 000000000..e7ff4cff6 --- /dev/null +++ b/pages/common/ansible-doc.md @@ -0,0 +1,29 @@ +# ansible-doc + +> Display information on modules installed in Ansible libraries. +> Display a terse listing of plugins and their short descriptions. +> More information: . + +- List available action plugins (modules): + +`ansible-doc --list` + +- List available plugins of a specific type: + +`ansible-doc --type {{plugin_type}} --list` + +- Show information about a specific action plugin (module): + +`ansible-doc {{plugin_name}}` + +- Show information about a plugin with a specific type: + +`ansible-doc --type {{plugin_type}} {{plugin_name}}` + +- Show the playbook snippet for action plugin (modules): + +`ansible-doc --snippet {{plugin_name}}` + +- Show information about an action plugin (module) as JSON: + +`ansible-doc --json {{plugin_name}}`