ansible-doc Command Examples

Display information on modules installed in Ansible libraries. Display a terse listing of plugins and their short descriptions. More information: https://docs.ansible.com/ansible/latest/cli/ansible-doc.html.

ansible-doc --list

ansible-doc --type {{become|cache|callback|cliconf|connection|...}} --list

ansible-doc {{plugin_name}}

ansible-doc --type {{become|cache|callback|cliconf|connection|...}} {{plugin_name}}

ansible-doc --snippet {{plugin_name}}

ansible-doc --json {{plugin_name}}