ansible-doc
all
Display information on modules installed in Ansible libraries. Display a terse listing of plugins and their short descriptions.
More info →Options (4)
-l, --listbooleanList available action plugins (modules)
Example:
ansible-doc {{[-l|--list]}}-t, --typebooleanList available plugins of a specific type
Example:
ansible-doc {{[-t|--type]}} {{become|cache|callback|cliconf|connection|...}} {{[-l|--list]}}-s, --snippetbooleanShow the playbook snippet for action plugin (modules)
Example:
ansible-doc {{[-s|--snippet]}} {{plugin_name}}-j, --jsonbooleanShow information about an action plugin (module) as JSON
Example:
ansible-doc {{[-j|--json]}} {{plugin_name}}Examples (6)
List available action plugins (modules)
ansible-doc [-l|--list]List available plugins of a specific type
ansible-doc [-t|--type] become|cache|callback|cliconf|connection|... [-l|--list]Show information about a specific action plugin (module)
ansible-doc plugin_nameShow information about a plugin with a specific type
ansible-doc [-t|--type] become|cache|callback|cliconf|connection|... plugin_nameShow the playbook snippet for action plugin (modules)
ansible-doc [-s|--snippet] plugin_nameShow information about an action plugin (module) as JSON
ansible-doc [-j|--json] plugin_namemade by @shridhargupta | data from tldr-pages