Documentation site | CICS collection on Galaxy | CICS collection on Automation Hub
This repository provides several CICS Ansible playbooks that show how to use the CICS collection for real-life use cases. Samples that relate to resource management activities are provided in the cmci folder. Samples that relate to CICS region provisioning operations are provided in the provisioning folder.
-
Retrieving operational data from running CICS regions
The
reporting
sample gives a good overview of how to get started with the Ansible tasks provided by the CICS collection.This sample shows how to retrieve data from running CICS regions and format the data for use in dashboarding or ad hoc analysis. Because it uses only the HTTP-based CMCI REST API, you can run the sample easily from a workstation without any setup on z/OS.
-
Deploying a program to a CICS region
The
deploy_program
sample shows how you can copy a load module from a build data set to a library used by CICS, and then NEWCOPY the program in CICS.This sample uses the z/OS core collection in concert with the CICS collection, within one playbook.
-
Customising when a CMCI module should fail
The
override_failure
sample shows how to override the default error when searching for a program that doesn't exist in CICS.The Ansible tasks provided by the CICS collection have automatic awareness of failure criteria, such as HTTP errors or actions being applied but with no matching resources. However, sometimes you want to override that behaviour and carry on despite a failure, as this sample shows.
-
The
resource_lifecycle_and_csd
sample shows how to perform a full CICS resource lifecycle with the CMCI modules, including creating and installing a definition from the CSD. -
Custom CA for HTTPS connections
The
set_ca
sample shows how to use the CMCI modules with a custom CA bundle, typically useful when you have an internal CA. -
The
refresh_tags
sample shows how to instruct a CICS region to refresh its tags by re-reading the tags file on USS. This is achieved by using thecmci_action
module. This sample also documents how to determine the appropriate parameters for thecmci_action
module for the action you're trying to run. -
CICS region provisioning samples
Detailed instructions are provided in this documentation, including the requirements and prerequisites you must satisfy. These samples show how to use the modules in the CICS collection to provision a CICS region from scratch:
- full_provision.yml is an Ansible playbook that can create all the required data sets and start a stand-alone CICS region.
- full_provision_smss.yml is an Ansible playbook that can create all the required data sets and start a CICS region that has the CMCI feature.
- deprovision.yml is an Ansible playbook that stops a running CICS region and removes all its data sets.
In addition, the following artifacts are supplied in support for these samples:
- inventory.yml contains an Ansible inventory for your provisioning.
- variables.yml contains the required environment variables needed by the z/OS Ansible collections (including the CICS collection) to execute the Ansible payload on z/OS UNIX. They also include the path to the Python and ZOAU installations on z/OS UNIX.
These CICS samples are just some of the samples available for the Red Hat Ansible Certified Content for IBM Z. You can find samples covering other aspects at the root of the repository.