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.
IBM z/OSMF collection provides several modules. Reference material for each module contains documentation on what parameters certain modules accept, what values they expect those parameters to be, and what will returned.