zmf_cpm_manage_software_instance – Role manages a provisioned z/OS software instance¶
Synopsis¶
The IBM z/OSMF collection provides an Ansible role, referred to as zmf_cpm_manage_software_instance, to manage a provisioned instance of z/OS middleware such as IBM Customer Information Control System (CICS®), IBM Db2®, IBM Information Management System (IMS™), IBM MQ, and IBM WebSphere Application Server or any other software service.
Depending on actions supported by z/OS middleware or software, various management such as starting or stopping the instance can be performed by using this role.
When software service instance is not required any more, it can be deprovisioned by using this role.
Variables¶
- zmf_host
Hostname of the z/OSMF server, specified in the inventory file or vars file.
required: Truetype: str- zmf_port
Port number of the z/OSMF server. If z/OSMF is not using the default port, you need to specify value for this parameter in the inventory file or vars file.
required: Falsetype: strdefault: 443- zmf_user
User name to be used for authenticating with the z/OSMF server.
This variable can be specified in the inventory file or vars file, or prompted when playbook is run.
required: Truetype: str- zmf_password
Password to be used for authenticating with z/OSMF server.
This variable can be specified in the inventory file or vars file, or prompted when playbook is run.
required: Truetype: str- instance_action_name
Action to be performed on a provisioned software instance, for example,
Deprovision
.Actions that can be performed on a provisioned instance are described in local record file that is associated with the provisioned instance. The name variable in actions array under registry-info identifies the various actions that can be performed on the instance.
required: Truetype: str- instance_info_json_path
Directory path for the JSON file that holds provisioned instance information.
Specify the file name that was generated when the zmf_cpm_provision_software_service role was performed.
required: Truetype: str- input_vars
Input variable names and values for the action to be performed on the provisioned instance.
This variable is required if the action processing expects specific inputs from user. This is a dictionary variable and needs to be in following format,
[{ "name":"VAR1","value":"VAR1_VALUE"},{..},...]
required: Falsetype: dict- api_polling_retry_count
Total retry attempts allowed before the role exits with failure, waiting on the instance action to complete.
This variable can be specified in the inventory file or vars file.
required: Falsetype: intdefault: 50- api_polling_interval_seconds
Interval time (in seconds) for each polling request.
This variable can be specified in the inventory file or vars file.
required: Falsetype: intdefault: 10
Examples¶
- name: Perform action on provisioned instance of z/OS Middleware
hosts: sampleHost
gather_facts: no
collections:
- ibm.ibm_zosmf
tasks:
- include_module:
name: zmf_cpm_manage_software_instance
vars:
instance_action_name: "<action-name>"
instance_info_json_path: "<full-instance-json-file-path>"
input_vars: '<optional-fill-me-input-vars>'