Modules
The IBM z/OS core collection contains modules that can be used in a playbook to automate tasks on z/OS. Ansible executes each module on the target node and returns the result back to the controller. While different modules perform different tasks, their interfaces and responses follow similar patterns.
You can also access the documentation of each module from the command line by using the ansible-doc command, for example:
$ ansible-doc ibm.ibm_zos_core.zos_data_set
- zos_apf – Add or remove libraries to Authorized Program Facility (APF)
- zos_archive – Archive files and data sets on z/OS.
- zos_backup_restore – Backup and restore data sets and volumes
- zos_blockinfile – Manage block of multi-line textual data on z/OS
- zos_copy – Copy data to z/OS
- zos_data_set – Manage data sets
- zos_encode – Perform encoding operations.
- zos_fetch – Fetch data from z/OS
- zos_find – Find matching data sets
- zos_gather_facts – Gather z/OS system facts.
- zos_job_output – Display job output
- zos_job_query – Query job status
- zos_job_submit – Submit JCL
- zos_lineinfile – Manage textual data on z/OS
- zos_mount – Mount a z/OS file system.
- zos_mvs_raw – Run a z/OS program.
- zos_operator – Execute operator command
- zos_operator_action_query – Display messages requiring action
- zos_ping – Ping z/OS and check dependencies.
- zos_replace – Replace all instances of a pattern within a file or data set.
- zos_script – Run scripts in z/OS
- zos_stat – Retrieve facts from MVS data sets, USS files, aggregates and generation data groups
- zos_tso_command – Execute TSO commands
- zos_unarchive – Unarchive files and data sets in z/OS.
- zos_volume_init – Initialize volumes or minidisks.
- zos_zfs_resize – Resize a zfs data set.