This playbook demonstrates how to copy data to and from a z/OS system using modules included in the Red Hat Ansible Certified Content for IBM Z core collection.
This playbook uses:
- collection:
- ibm.ibm_zos_core
- modules:
- zos_data_set
- zos_copy
- zos_fetch
It is a good practice to review the playbook contents before executing them. It will help you understand the requirements in terms of space, location, names, authority, and the artifacts that will be created and cleaned up.
This playbook requires:
- Configure the included inventory.yml with the
information from the managed z/OS host.
- Review inventory documentation
- Configure the included host_vars zos_host.yml
with the information from your z/OS system.
- Review host_vars documentation and any additional noted variables in the configuration.
This project has included a site.yml
playbook that serves as the primary playbook
that provides additional prerequisite checks then it invokes the copy_fetch_data_set.yml
playbook.
If you want to run the primary playbook site.yml
it will check that your environment
has the correct version of Ansible as well as the collection needed to execute
correctly. To run the primary playbook, use command:
ansible-playbook -i inventories site.yml
You can skip the prerequisite check and run the copy_fetch_data_set.yml
with
command:
ansible-playbook -i inventories copy_fetch_data_set.yml
All changes are maintained chronologically by date found in the changelog.
© Copyright IBM Corporation 2020, 2021
Licensed under Apache License, Version 2.0.
Please refer to the support section for more details.