ansible-doc

The command that lists installed modules and plugins and shows the documentation for any one of them.

In more detail

ansible-doc -l lists modules with a one-line description each, and ansible-doc followed by a module name shows its arguments and examples offline. It reads whatever collections are installed on the control node, so it always matches the version you actually run.

Examples

ansible-doc -l ansible.builtin
ansible-doc ansible.builtin.copy

Related terms

Taught in

References

Certification courses