Modules can be used from the command line or in a playbook task. Ansible executes each module, usually on the remote target node, and collects return values.

While different modules perform different tasks, their interfaces and responses follow similar patterns.

Module reference

Reference material for each module contains documentation on what parameters certain modules accept and what values they expect those parameters to be.